Close or Abort Form after Clone
Posted: Wed Feb 17, 2021 1:37 am
Is there a function or button function or any function that once I execute a Clone Function of the existing form record, that I can abort this clone or close it WITHOUT saving? I have searched for hours to try to find something in these forums and cant find anything examples how to exit out of a form and NOT save it. I don't want to just click on the nuBuilder Form item at the top. I am wanting a button on the form once I click Clone that will "Exit without saving." the current form Im editing. This to prevent my users from saving a cloned rather than edited form by mistake.
I already have the button on the heading to "Exit-No Save", and have already got the if nuIsClone() { alert(); } working. I just need to know the actual method, function, code to exit the form without saving instead of the alert(). Preferably, I'd like it to go back to the Search/browse screen and reset the search.
Besides the Javascript and PHP functions in the wiki, and the code repository (Ive looked for examples there too), is there anything else that would be helpful in finding this type of info out?
I already have the button on the heading to "Exit-No Save", and have already got the if nuIsClone() { alert(); } working. I just need to know the actual method, function, code to exit the form without saving instead of the alert(). Preferably, I'd like it to go back to the Search/browse screen and reset the search.
Besides the Javascript and PHP functions in the wiki, and the code repository (Ive looked for examples there too), is there anything else that would be helpful in finding this type of info out?