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.
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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 69 members 4,203 guests
Please welcome our newest community members: