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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamic CRM form save using javascript.

(0) ShareShare
ReportReport
Posted on by

Hello all,

I am saving all form fields values using javascript ,a form saved successfully but refresh form then all form values are empty and i have filled form value on form load.

when I am comming form from grid that means click on grid row then form is filed perfectly.but save form values and refreshing  form showing empty values.

thanks

akram

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at
    RE: Dynamic CRM form save using javascript.

    Check this:

    msdn.microsoft.com/.../dn481607.aspx

    and if set the form values by JavaScript also consider using submit mode:

    msdn.microsoft.com/.../gg334409.aspx

  • Suggested answer
    Saddamk206 Profile Picture
    777 on at
    RE: Dynamic CRM form save using javascript.

    Hi Please try this code

    //Save Form changes Using JS

    Xrm.Page.data.entity.save();

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Dynamic CRM form save using javascript.

    Hi Akram,

    Refresh your form data by below :

    Xrm.Page.data.refresh();

  • Community Member Profile Picture
    on at
    RE: Dynamic CRM form save using javascript.

    Thanks for reply Mohit,

    but I want to refresh a form on same page and when i am regreshing form mannually than also not working that not showng form values.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Dynamic CRM form save using javascript.

    Hi Akram,

    Looks like while refreshing the form, new form will be opened , verify that whether the existing records get empty or there is a new form which opened on the refresh.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans