Hides the "optional" markup of a field.
Note that this function does not change the field's validation or required state, it only hides the existing marker next to the label. You will need to write an accompanying validation function to change the field's requiredness
Executed
Client-side
Arguments
Argument | Type | Description |
---|---|---|
fieldName | String, required | The name of the field that should have it's optional marker hidden |
Example
This example will hide the optional marker of FIELD9.
function(helper) {
helper.hideFieldOptional('FIELD9');
}
Last modified on September 13, 2023