Page 1 of 1

nuuserhome tabs

Posted: Sun May 02, 2021 9:07 pm
by vario
When creating forms with the builder, I get a button on "Fast Forms" tab of nuuserhome. I can move this easily to "Main" tab once it has been tested. Rather than create another "Launch" object, I'd like to use nuuserhome for users, but when I log in as user I can still see the "Fast Forms" tab. Can this tab be hidden from users?
Also if I change the name of "Main" tab on nuuserhome, the order of "Fast Forms" tab gets changed to 10 when it was -1 and I must go into the database to change it back to -1. What is the significance of order = -1?

Re: nuuserhome tabs

Posted: Mon May 03, 2021 6:30 am
by kev1n
To hide the Fast Forms tab from users, modify nuOnLoad() in (Setup -> Header) as follows:

Code: Select all

function nuOnLoad() {

    if (nuFormType() == 'edit') {

        if (nuCurrentProperties().form_id == 'nuuserhome' && !window.global_access) {
            nuHide('nuTab0');
        }

    } else
    if (nuFormType() == 'browse') {
        // Browse Form loaded
    }

}
-1 is set to ensure that the tab is always shown in the first position.

Re: nuuserhome tabs

Posted: Mon May 03, 2021 7:25 am
by vario
Thanks for the answer - I found it is also necessary to add nuSelectTab to show the objects.