Page 1 of 1

Jump to "New Record" on button click

Posted: Wed Nov 08, 2017 12:39 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

Posted: Wed Nov 08, 2017 1:02 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

Posted: Mon Nov 13, 2017 8:13 am
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

Posted: Mon Nov 13, 2017 8:30 pm
by toms
Thank you - that did the job!