Page 1 of 1

Jump to "New Record" on button click

PostPosted: Wed Nov 08, 2017 9:09 pm
by toms
First I created a form using the "Fast Form" function and now a button is displayed on the "Home" page.
Clicking this button brings me to the "Browse/Search Screen". Now I'd like to have it directed to the "New Record" screen right away.

How can this be done?

Thomas

Re: Jump to "New Record" on button click

PostPosted: Wed Nov 08, 2017 9:32 pm
by toms
I solved it by adding a piece of js-code:

Home ► nuBuilder Form ► nuBuilder Form ► Custom Code ► Javascript

Code: Select all
function nuLoadBrowse() {
   nuOpenForm(nuFORM.parent_form_id, nuFORM.parent_record_id, '5aa2ea6f69f15ab', '-1', 'MyForm', nuFORM.filter);
}


I'm just wondering if there is an inbuilt way to do this?

Re: Jump to "New Record" on button click

PostPosted: Mon Nov 13, 2017 4:43 pm
by mobilemcclintic
On your button, on the tab that shows the form you are trying to open, put -1 in the record field.

Re: Jump to "New Record" on button click

PostPosted: Tue Nov 14, 2017 5:00 am
by toms
Thank you - that did the job!