cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fpc-kdrosario
Helper I
Helper I

Visibility value not consistent

Good day,

 

I encountered an issue wherein the visibility condition of a control card is not consistent all throughout the form.

 

I have 2 forms which depends on each other. The forms are on a different screen (needs a NEXT button to navigate through the screens). I have this control card from Form1 named Recess1 that has a "Visibility" value of

 

true

 

Then, I navigated to Form2. When I tried to check the value of it on the Form2 by putting the "Text" value of a field named lblVisibilityRecess1 as

 

Recess1.Visibility

 

it showed/returned "false".

I was expecting it to return "true" since it is what I placed on the Visibility property for Recess1.

 

So I tried to do a work around and set a variable varGenerallyTrue on the OnStart of my app:

 

Set(varGenerallyTrue,true);

 

 

Then when I checked lblVisibilityRecess1, it is now showing/returning "true".

 

Any thoughts why is this happening?

 

Thanks!

K.D.

3 REPLIES 3
eka24
Super User
Super User

I reproduced your example but did not get the result you have:

Datacard1 in Form1 on Screen1: true

 

 

lblVisibilityRecess1 in Screen2 visible property

Datacard1.Visible produces true not false

 

With regards to the variable OnStart, it will maintain whatever is put in the variable until the app is restarted again. Thus true will remain true until App restarts.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

Good day @eka24 ,

 

I forgot to mention that the forms are in 2 different screens.

 

Regards,

K.D.

 

The example I gave is based on different screens. Can you recheck the formula I used again?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (2,690)