Page 1 of 1

[video] How to hide Add and Print Buttons in Browse form?

Posted: Thu Dec 14, 2017 1:58 pm
by cypherinfo
Hello,
congratulations for Forte that seems to implement all the feedback from the 3 :)
I've succeeded to create my first form on an existing table :)
I have used the fast form then I have edited it (it seems no other way; adding a form from the Setup tab don't work for me).
Glad to see it is possible to select a browse only form that may be useful in many applications. I feel the lack of the browse object (maybe I'm missing something) that could display a form in a page without the need of a button to launch it.
It is assumable that when a browse form is used instead of a browse and edit one, there is no need to add a new record; anyway, there is no option to hiding it along with the Print button if necessary.
Here is the video to show you what I mean: https://youtu.be/PcABK14xUS8
Regards,

Re: [video] How to hide Add and Print Buttons in Browse form

Posted: Thu Dec 14, 2017 6:03 pm
by toms
Hi,

I thougth that the Print button could be hidden with a custom javascript. But the functions is not called (not implemented yet?)

Code: Select all

function nuLoadBrowse(){
  $('#nuPrintButton').hide(); 
}

Re: [video] How to hide Add and Print Buttons in Browse form

Posted: Thu Dec 14, 2017 8:35 pm
by admin
A Browse Form is for Lookups (which you may still want to add a new record from). http://wiki.nubuilder.net/nubuilderfort ... .php/Forms


Logging in as globeadmin will give you all Action Buttons,

BUT hiding them is done via Access Levels for other users. http://wiki.nubuilder.net/nubuilderfort ... cess#Forms
Capture.PNG
Good question though!

Steven

Re: [video] How to hide Add and Print Buttons in Browse form

Posted: Mon Dec 18, 2017 1:40 pm
by cypherinfo
I have updated with the last commit of Forte, created a new access level "operator" (with just the form ìyear' and no button enabled).
I have created a new user (named: user) and associated the "operator" to it.
After having logged in with ^user^ I see a window that would result just after is clicked the Add button and not the browse screen I expected.
Here is the video: https://youtu.be/IjCyQlfwvhA
What am I doing wrong?
Thank you.

Re: [video] How to hide Add and Print Buttons in Browse form

Posted: Mon Dec 18, 2017 3:22 pm
by admin
The code for the default User Home Page is nuuserhome (it goes to the same as User Home on the Setup Tab).

I have added that to the wiki. http://wiki.nubuilder.net/nubuilderfort ... ccess#Home

Steven