cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted
Anonymous
Not applicable

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

 

Thank you,

 

@Anonymous 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (4,114)