Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Unsaved Changes in Account entity.

(0) ShareShare
ReportReport
Posted on by

I have a script running in ON LOAD event, which disable and enables certain address fields based on scenerios. In that script I am also using Setsubmitmode("always") to save the changes. But my record still displays the "unsaved" message. I checked which field is changed and not saving(screenshot below). What should i do to make the changed field save and avoid "unsave" message.

2022_2D00_06_2D00_27_5F00_14_2D00_21_2D00_49.png

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Unsaved Changes in Account entity.

    Hi Furqan Majeed,

    This is because you just apply the changes at the client side and it doesn't save to the server. So please add the formContext.data.save() function at the end of your ON Load Event's JS file.

    Please refer to this:

    https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-data/save

    Note: 

     formContext.data.save() function would trigger the ON SAVE EVENT if you add.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,165 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans