Reload parent form on cancel

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
charles267
Posts: 20
Joined: Wed Dec 23, 2015

26 Jul 2016

If a parent form has a related list, clicking the "Save" button will save the results of the child form and then reload the parent form to show the updated content (e.g. the newly saved child form). We have an instance where we would like the cancel button on the child related list form to refresh the parent form when the child form closes. In other words, we want the same refresh as the save button without actually saving the form.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

27 Jul 2016

Hi,

Open the child form in Forms Designer and insert the following code into OnClick property of the Cancel button:

Code: Select all

window.frameElement.commitPopup(); return false;

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests