Jump to "New Record" on button click

Jump to "New Record" on button click

Postby toms » Wed Nov 08, 2017 9:09 pm

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
 

Re: Jump to "New Record" on button click

Postby toms » Wed Nov 08, 2017 9:32 pm

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?
toms
 

Re: Jump to "New Record" on button click

Postby mobilemcclintic » Mon Nov 13, 2017 4:43 pm

On your button, on the tab that shows the form you are trying to open, put -1 in the record field.
mobilemcclintic
 
Posts: 54
Joined: Fri Oct 23, 2015 8:04 am

Re: Jump to "New Record" on button click

Postby toms » Tue Nov 14, 2017 5:00 am

Thank you - that did the job!
toms
 


Return to General