Discussions
Set display type of UI objects
Is there an API that sets the display type of UI objects like field, button or tab? For example, during page initialization, I want to programmatically set a field from "Normal" display type to "Disable" or "Hidden" given a certain condition, like if field A is equal to "apple", field b will be rendered in view or disable mode.
Also, is there an API that sets display type of Sales Order form to "Disable" ? I don't want to modify the permission access level of the Role that has access to Sales Order from "Edit" to "View", just to render the form in view mode. Since I only need it to be in view mode when it pass a certain condition, like if field A has a value.