web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can two forms on the s...
Power Apps
Unanswered

Can two forms on the same screen have their FormModes sync'd?

(0) ShareShare
ReportReport
Posted on by

I have an unusual need. Based on a users' group permissions They have access to a check that will display a hidden second form with sensitive information.  This works well, however the screen forms are set to Edit or New based on a variable.  I have tried both a single and dual variables but the forms can render asynchronously depending on user navigation.

 

In the DefaultMode of frmSensitive I'd like use something like Set(FormMode.Edit(If(frmPublic=FormMode.Edit),FormMode.New))?

 

It seems the simplest way to avoid my issue?  Any ideas are appreciated.

 

Well.  It seems that EditForm() and NewForm() work fine on my 10pro HVM.  My 11 Pro won't set either - with any browser.  I've had this issue twice now.  Sorry for the crap above.

 

JP

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,949 Most Valuable Professional on at

    Hi @Ridgerunner401 ,

    If you set a Variable (I have used a Context item here)

    UpdateContext({varFormMode: "EditMode"})

    or whatever mode you need at the time and then add a Button (you can hide it)

    Switch(
     varFormMode,
     "EditMode",
     EditForm(Form1);
     EditFrom(Form2),
     "ViewMode",
     ViewForm(Form1);
     ViewFrom(Form2),
     "NewMode",
     NewForm(Form1);
     NewFrom(Form2)
    )
    

    and add to the top code

    UpdateContext({varFormMode: "EditMode"});
    Select(ButtonName)

    when you change the variable required in the top code, the forms will then enter the desired mode.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard