CRM 2011: Foce submit in JS RRS feed

  • Question

  • I'm trying to force a refresh on a page using JS without resorting to location.reload.

    I COULD use the OLD API and invoke crmForm.SubmitCrmForm(59, true, true, false), but this is deprecated and I'd rather do this by the books.

    So, I'm trying to mark an attribute as dirty using page.getAttribute()[0].setSubmitMode("always"). However, doing this doesn't change page.data.entity.isGetDirty(), which is still false, and subsequently, page.data.entity.save() doesn't do anything.

    What am I doing wrong?

    Monday, October 14, 2013 8:57 AM

All replies

  • window.location.reload(true);


    Why do you don't want to use location.reload?

    Kind Regards,


    • Proposed as answer by RameshwariSah Wednesday, October 16, 2013 6:18 PM
    Wednesday, October 16, 2013 6:18 PM