CRM Cards Form required field invalid on initial load

ndwilliams3
Autorität

When setting a form input to required and it doesn't have an initial value, the input state is set to invalid on loading. I would expect the input state to be set to invalid only after a focus or mouseout event.

 

{
type: 'input',
name: 'example_input',
inputType: 'text',
label: 'Example input field',
placeholder: 'Enter some text',
required: true,
requiredValidationMessage:
"This field is required. Enter a value",
}

Screen Shot 2023-02-16 at 6.55.22 PM.png

0 Upvotes
0 Antworten 0

0 Antworten

Noch keine Antworten

Auf diesen Beitrag hat noch niemand geantwortet. Es lohnt sich aber, gelegentlich wieder vorbei zu schauen und nachzusehen, ob jemand eine Antwort gepostet hat – oder um eine eigene Lösung zu posten!

Auf Beitrag antworten

Hilfe gefällig? Weitere Infos in unseren Community-Richtlinien