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 :
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
ManoVerse Profile Picture

ManoVerse 127 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans