cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Editing\arranging a forms data cards when visibility property false

hi,

I have a number of data cards on a form. They have if() statements in there visibility property to determine if they will be visible or not. That works fine.

 

The problem I have is when Im working on the form, programming, I want all the data cards visible, so I can modify them. I cant unless I put code in visibilty porperty to set it to true while I edit/arrrange form. Makes it difficult to work on form.

 

This seems like a dumb question but Im stuck and cant find the answer. Keep wondering if Im in some sort of interactive programming edit mode where the form is semi running\functional.

thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

You make all the fields visible while in Edit/New mode Form, and still use the If function for Visible property in Display Form. 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

 

Regards,

Mona

 

 

Community Support Team _ Mona Li
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

2 REPLIES 2
Drrickryp
Super User
Super User

HI @Anonymous,

 

Put a button on the screen with the OnSelect property of UpdateContext({vis:!vis}).  // This gives you the option of setting a given card's Visibility property as vis and pressing the button will toggle the visibility on and off while you work on the screen, or, you can leave some of the cards Visibility as true if you aren't working on them.  When you are done, you can either change the Visibility property of each card back to true, or save yourself the effort and set the OnVisible property of the screen to UpdateContext({vis:true}) and get rid of the button.  

v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

You make all the fields visible while in Edit/New mode Form, and still use the If function for Visible property in Display Form. 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

 

Regards,

Mona

 

 

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

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,623)