Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Jump to "New Record" on button click

Post Reply
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Jump to "New Record" on button click

Unread post 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
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Jump to "New Record" on button click

Unread post 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?
mobilemcclintic
Posts: 54
Joined: Fri Oct 23, 2015 12:34 am

Re: Jump to "New Record" on button click

Unread post by mobilemcclintic »

On your button, on the tab that shows the form you are trying to open, put -1 in the record field.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Jump to "New Record" on button click

Unread post by toms »

Thank you - that did the job!
Post Reply