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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model Driven App: how ...
Power Apps
Unanswered

Model Driven App: how to reset form to default settings?

(0) ShareShare
ReportReport
Posted on by 264

Hi, guys!

model driven app

I need to change "Disabled" and "Visibility" of attribute controls, tabs, sections depending on the status.

Also I need to restore default settings. Of course I can remember all these settings in a saparate object, but I'm not sure it's a good way.

Is there a simple method to reset controls' settings?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    If the entity you mentioned is managed all you have to do is to remove the unmanaged "active" layer from the form but keep in mind that it will wipe out all the customizations you did with the form - https://learn.microsoft.com/en-us/power-apps/maker/data-platform/solution-layers#remove-an-unmanaged-layer

  • Max77 Profile Picture
    264 on at
    I open main form, than onLoad does smth like this:
            Xrm.Page.ui.tabs.get("General_tab").sections.get("External_section").setVisible(false);
            entityForm.disableTab("General_tab");
           entityForm.setAttributeVisibility("pbl_internal", objType == Enums.rttype.inshop);
    Than I change attribute status. After that action I'd like to restore default visivility of the attributes, but it's a little hard. I need an easy way to restore attr settings or reload the main form.
     
     
     
     
  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    No standard way to do it - Usually I would just create if/then or use a case/switch e.g. in one part of the if you hide etc then in the then show etc. in a function that is hooked up to an onchange event on the filed in question (amd if needed also call the function from the forms onload event).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard