Page 1 of 1

Reload parent form on cancel

Posted: 26 Jul 2016
by charles267
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.

Re: Reload parent form on cancel

Posted: 27 Jul 2016
by Dmitry Kozlov
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;