cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Vineesh
Level: Powered On

Trouble with IF function

This is the flow I want to set up in my app

1. There is a Drop down menu, were user can select an Option

2. If the user selects "Other" option in the drop down menu then he/she has a Text Input box at the bottom were one can enter a different value

3. There is another Label field at the bottom which auto populates depending upon the value entered, if the user selects any option other than the "other" option from the drop down menu this field gets populated by that value, if "Other" option then it gets populated by the value in the Text Input box.

 

I used the following Formula for it

If(ComboBox1.Selected.Value="Other",TextInput1,ComboBox1.Selected.Value)

 

But I get that red swiggly line if I do this but this formula 

 

If(ComboBox1.Selected.Value="Other",TextInput)

 

or this one

 

If(ComboBox1.Selected.Value="Other",ComboBox1.Selected.Value)

 

Doesn't cause any problem. PLeaseeeeee Help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Trouble with IF function

hi @Vineesh ,

I believe that you need to specify the .Text in  your formulas when you refer to a TextInput box.  Without including the Textinput1.Text  your reference is to the control itself, not the value that it contains.  If you wish to convert the text in the Textinput box to a number,  you need to enclose it in the Value() function or multiply it by 1.  

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Trouble with IF function

hi @Vineesh ,

I believe that you need to specify the .Text in  your formulas when you refer to a TextInput box.  Without including the Textinput1.Text  your reference is to the control itself, not the value that it contains.  If you wish to convert the text in the Textinput box to a number,  you need to enclose it in the Value() function or multiply it by 1.  

View solution in original post

Administrator
Administrator

Re: Trouble with IF function

Thanks for posting in the community @Vineesh - can you review the above reply and update the thread if it was helpful?

 

Thank you,

 

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 480 members 6,455 guests
Please welcome our newest community members: