Page 1 of 1

Close Edit after Save in IFRAME

Posted: Mon Dec 26, 2022 9:22 pm
by potap
I set nuCloseEditAfterSave setting to "User Forms". t works perfectly on the regular forms, but the form in IFRAME doesn't go back to browse breadcrumb after saving.

I even tried to put in AfterSave php code:
nuAddJavascript("nuOpenPreviousBreadcrumb();");

Still no result. Can you please suggest the solution?

Re: Close Edit after Save in IFRAME

Posted: Thu Dec 29, 2022 4:01 pm
by potap
Solved it by adding to the Brows&Edit Custom Code section of the IFRAME form the following text:

Code: Select all

function nuAfterSave() {
	nuGetBreadcrumb(0);
	}