cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
echodapogi
Helper V
Helper V

Disable the control based on value of the text or combo box value

Please help. how can i disable this "+" add button/control when the value of Request Type is "Scrap" and enable when the Value is not scrap. Thank you guys. 

 

PowerappProblem.JPG

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
cwebb365
Super User
Super User

On the Visable property of the +, use If function. so If(RequestTypeTextbox.Text = "Scrap",true,false) if it's a drop down value could be IF(RequestTypeChoice.Selected.Value = "Scrap",true,false)

View solution in original post

Probably would be something like If("Scrap" in DataCardValue5.Selecteditems,true,false) or something along those lines for combo box.  

View solution in original post

4 REPLIES 4
cwebb365
Super User
Super User

On the Visable property of the +, use If function. so If(RequestTypeTextbox.Text = "Scrap",true,false) if it's a drop down value could be IF(RequestTypeChoice.Selected.Value = "Scrap",true,false)

Thank you for your prompt reply. but i cannot make it work. the combo box is inside the "FormViewer1"  and there is a card named "RequestType_DataCard1"  and the name of the combo box is "DataCardValue5".  i could  not reference the DataCardValue5.Text. Sorry i am a newbie on this.

Should be DataCardValue5.Selected.Value, but if it's a combo box those are more complicated cause it's selectedvalues and requires some other ways to work with it. Is it a dropdown or an actual combo box? 

Probably would be something like If("Scrap" in DataCardValue5.Selecteditems,true,false) or something along those lines for combo box.  

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,351)