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 / 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,483 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard