Page 1 of 1

add record form

Posted: Tue Oct 09, 2018 4:11 am
by Rolf
I understand that nuBuilder is built around the concept of the browse and the edit form. Thus, when you click the save button on an edit form, nuBuilder remains with the current record. Any further change and click on save will overwrite your previous change.

I'd like to have an "add record" form. After saving the record, I'd like the form to be reopened as if the clone button had been pushed or even better, display the currently entered record below the now-emptied fields (allowing one to see the previously entered record while adding a new record repetitiously).

I tried to refresh the page via

Code: Select all

header("Refresh:0");
in the after-save event of the form but that didn't seem to do the trick.

Did I somehow get the message across of what I'm trying to do?

Re: add record form

Posted: Tue Oct 09, 2018 4:42 am
by Rolf
found the answer shortly after asking my question here; Use nuReturnNewRecord(); in the AfterSave event of the form.

@Chris, if you are reading this; Thank you for your AWESOME videos. But please, please, please slow dooowwwwn ;-)

Further options are discussed here.

Re: add record form

Posted: Tue Oct 09, 2018 10:46 pm
by admin
.