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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans