The documentation says, you can control permissions at a form control level. If you wanted a group of users to not have permissions on the sales order details form for certain controls, how would you go about doing it?
Asked
Active
Viewed 290 times
0
-
1Take a look at [Hide form tabs for specific user groups](http://stackoverflow.com/questions/18761393/hide-form-tabs-for-specific-user-groups), sounds very similar. – FH-Inway Apr 15 '16 at 10:56
-
It is the same as the answer for the question that @FH-Inway linked. Set the SecurityKey property on the form controls. – SShaheen Apr 15 '16 at 12:38
1 Answers
0
There's a property in form controls called "Security Key", you can create or just use one that already exists. If you choose to create, you must link a user group to this Security Key... and if you create the user group, you must link users to this group.
If you don't link any user group to this Security Key, only admins will see.
Or else, you can do something like this in the init method of the form: (I don't recommend)
if(curuserid() == "RT.")
{
formcontrol.visible(true);
}

Pedro Kehl
- 166
- 3
- 11