Toggle menu

helper.hideFieldRequired(fieldName)

Hides the required 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 required marker hidden

Example

This example will hide the required marker of FIELD9.

function(helper) {
    helper.hideFieldRequired('FIELD9');
}

Last modified on September 13, 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon