Hide a Field in Purchase Order

Disable the standard rate field named “Rate” in the Purchase order for all roles other than Admin.

Solution

There is no need of script for solving this problem, instead we can use Workflow action.

  1. Created a workflow with type=”Transaction” and Subtype=”Purchase Order”

2. In state 1 , create a new action named “Set Field Display Type” and set the Item sublist field “Rate” as Disabled. 

3. Set the trigger type as “Before Record Load” and then set the access permission in condition field.

After creating workflow, check the change with Admin role and other role.

For Admin. the Field will be enabled

For other roles, the field will be disabled

Leave a comment

Your email address will not be published. Required fields are marked *