rbf_setFieldDisabled()
Purpose
This function disables or enables an input field on the current page. It
will have no effect if the field does not exist on the current page. For fields that allow
values in multiple languages, use the options parameter to
specify which language for which to disable/enable the input field. If the language code is
invalid, or is not included in the tenant's supported languages, the field will not be
disabled or enabled.
Syntax
rbf_setFieldDisabled(fieldname, isDisabled,
options)
Parameters
fieldName
The integration name of field
isDisabled
The boolean value for "disabled" field's property
options
A JSON object containing langCode, whose value is an
array of two-letter ISO language codes, for example,
{"langCode":["ar","he","fr"]}. The field will be disabled/enabled for
those languages.
Note: This API is supported in portals as well.
Example
The following example returns the value with input field disabled.
rbf_setFieldDisabled("empId",true,{"langCode":["ar","he","fr"]} )