Close or Abort Form after Clone

Close or Abort Form after Clone

Unread postby icoso » Tue Feb 16, 2021 11:38 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?
icoso
 
Posts: 162
Joined: Mon Feb 08, 2021 7:39 am
nuBuilder Version: 4.5

Re: Close or Abort Form after Clone

Unread postby kev1n » Tue Feb 16, 2021 12:50 pm

Is this question really for version 3?
kev1n
nuBuilder Team
 
Posts: 1697
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Close or Abort Form after Clone

Unread postby icoso » Wed Feb 17, 2021 10:05 am

No, just noticed. I was searching for answers and I guess one of the answers I read was in the v3 thread... I clicked the Custom Code title to go back and open a new thread, and didn't notice the ttile. That's why I couldn't find it just now.... I started a new thread in the v4.5. Delete this one...
icoso
 
Posts: 162
Joined: Mon Feb 08, 2021 7:39 am
nuBuilder Version: 4.5


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 1 guest