How to disable/enable or editable / non editable some fields in a fieldgroup ?

How to disable/enable or editable / non editable some fields in a fieldgroup ?
For example I want to disable Branch field in Voucher entry screen for some users. How it is possible ?

Hi,
You should use Roles for your users to set permissions for editing and reading. Please, look at the documentation.

Thanks for your feedback. But I think you are confused. What I want is that , I want to disable some fileds in fieldgroup of a screen at the time of opening the screen ( may be in init function or initNewItem function ) based on the user. For example , I want to disable a filed named Branch in a voucher entry screen for most of the users. They can enter their branch vouchers only . Then cant change the branch field but can see that. What is the solution ?

Manoj,

The security subsystem is exactly about the case you are describing. Create a role “Most of the users”, go to the attributes section and hide user and brunch attributes. Apply this role to that most of users, who are not allowed to see that information and magic will happen automatically when you login under one of those restricted users.

P.S. I would recommend going through the hands-on lab, that has a very detailed section about security setup process. It should not take longer than 2-3 hours of your time, but will show the most common basic approaches of the Platform.

Regards,
Aleksey

Ok, I will try with user rules. Thank you for the support…