Page 1 of 1
Return to the browse after saving in a popup
Posted: Thu May 12, 2022 7:15 pm
by nathan
Hi it’s me again,
I would like to return to the browse after saving in a popup…
Form A: browse/edit
Form B: Edit only
Here is the sequence I would like,
Open form A in “Browse”
Choose a row, open form A in “Edit”
On form A click a button that opens Form B in POPUP “Edit”
On save Form B, Close POPUP (Form B) return to Form A in “Browse”
Thank you in advance for your help !!!
Re: Return to the browse after saving in a popup
Posted: Fri May 13, 2022 6:47 am
by kev1n
Hi,
Code in the popup / form B (untested):
Code: Select all
function nuAfterSave() {
if (parent.$('#nuModal').length > 0) {
let l = parent.window.nuFORM.breadcrumbs.length;
if (l > 1) {
parent.nuGetBreadcrumb(l - 2);
}
}
}
Re: Return to the browse after saving in a popup
Posted: Wed Jul 13, 2022 12:14 pm
by warfreak05
hi any suggestion how to close pop-up B after saving?
Re: Return to the browse after saving in a popup
Posted: Wed Jul 13, 2022 1:09 pm
by kev1n
Try it like this:
Code: Select all
function nuAfterSave() {
if (parent.$('#nuModal').length > 0) {
nuClosePopup();
}
}
Re: Return to the browse after saving in a popup
Posted: Sat Jul 16, 2022 8:05 am
by warfreak05
kev1n wrote: ↑Wed Jul 13, 2022 1:09 pm
Try it like this:
Code: Select all
function nuAfterSave() {
if (parent.$('#nuModal').length > 0) {
nuClosePopup();
}
}
hi, who try this code? is it working?
Re: Return to the browse after saving in a popup
Posted: Mon Jul 18, 2022 12:57 pm
by kev1n
Can you describe your use case in more detail? How do you open the popup, where did you add the code, what do you expect to happen when the form closes?