Page 1 of 1

Next/back button for record navigation

Posted: Mon Apr 11, 2022 7:56 pm
by tpolimeni28
Hello I was looking at the GitHub page, I was trying to get the next and back button function to operate when using the code provided there I wasn't seeing the said buttons. I have deployed the JS code however I am not seeing the buttons. When I open a records I do not get the option for next or back.

source code from this link

https://github.com/KanRule/nuBuilder-4. ... _navigator

Re: Next/back button for record navigation

Posted: Mon Apr 11, 2022 7:58 pm
by kev1n
Are you using the simple or advanced code (with PHP) ?

Re: Next/back button for record navigation

Posted: Tue Apr 12, 2022 6:30 pm
by tpolimeni28
Simple

Re: Next/back button for record navigation

Posted: Tue Apr 12, 2022 6:52 pm
by kev1n
You need to create the buttons:
Add two button objects to you form:

A First Button with Title "Next" and in Custom Code, add an onclick event with the Javascript openRecord(1);
A Second Button with Title "Back" and in Custom Code, add an onclick event with the Javascript openRecord(-1);