Toggle menu

helper.hideFieldOptional(fieldName)

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

ArgumentTypeDescription
fieldNameString, requiredThe 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 13 September 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon