setRequired

open fun setRequired(isRequired: Boolean): B

Sets whether the form element is required. If set, the field is required to have a value at the time it is exported by a submit form action.

Parameters

isRequired

true when the form element should be required.