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

Re: Fields visibility based on selection from another field

Not exactlly, I am talking about the visible property of each of the fields... 

 

I have a variable called varFormTab and I want the Room1 Room2 Room3 etc fields to be shown if that variable is set to ReservationDetails and also the new variable as per your instructions VisibleRooms which is set during the onChange of the Rooms field.

 

How do I translate that into code which should be placed on the Visible property of each of the buttons ?

 

 

Eickhel
Level 8

Re: Fields visibility based on selection from another field

Oh OK... then go to the Advanced tab of the fields an put the formula in the Visible property

 

Capture.PNG

 

 

Community Support Team
Community Support Team

Re: Fields visibility based on selection from another field

Hi @Eickhel,

 

Do you want the Room1 to be shown up when varFormTab= "ReservationDetails" and VisibleRooms >= 1?

 

I think it is not necessary to initialize a variable to store the Rooms field value. I have made a test on my side, please take a try with the following workaround:5.JPG

 

Set the OnVisible property of the Room1 Data card control to following formula:

If(varFormTab="ReservationDetails" && Value(DataCardValue2.Text)>=1,true,false)

Note: The DataCardValue2 represents the Text input control (whose default value is 1) within the Rooms Data card control.

 

Set the OnVisible property of the Room2 Data card control to following formula:

If(varFormTab="ReservationDetails" && Value(DataCardValue2.Text)>=2,true,false)

Set the OnVisible property of the Room3 Data card control to following formula:

If(varFormTab="ReservationDetails" && Value(DataCardValue2.Text)>=3,true,false)

Set the OnVisible property of the Room4 Data card control to following formula:

If(varFormTab="ReservationDetails" && Value(DataCardValue2.Text)>=4,true,false)

Set the OnVisible property of the Room5 Data card control to following formula:

If(varFormTab="ReservationDetails" && Value(DataCardValue2.Text)>=5,true,false)

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
iioannou
Level: Powered On

Re: Fields visibility based on selection from another field

That works like a charm! many thanks @v-xida-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 (Last 30 Days)
Users online (5,715)