Skip to content

Validation issue with conditional fields rendering #81

Answered by ivan-dalmet
lscmaro asked this question in Q&A
Discussion options

You must be logged in to vote

@lscmaro
I just released a version 1.1.1 of @formiz/core so you can write the following code:

<SelectField
  name="customer_info.region"
  options={regionOptions}
  type="regions"
  label="State"
  required={regionOptions ? "State is Required" : false}
/>

(don't forget to update the @formiz/core package to get the fix 😊)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ivan-dalmet
Comment options

Comment options

You must be logged in to vote
1 reply
@lscmaro
Comment options

Answer selected by lscmaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants