0

how can we make the the dropdown in the Nortstar Form as a required field? is it possible to do so ? in the Fluent ui Form for the textarea and input component we have required Field so onsubmit it validates the input Form shows to fillout for required fields https://codesandbox.io/s/zgpqse?module=/example.js

But for dropdown we don't have anything as such. how do we validate the Dropdown with required field?

we can disable the submit button based on hooks but it would be good if we have a required field https://codesandbox.io/s/cokfqy?module=/example.js

umgolla
  • 39
  • 8
  • Please share more details, like the code involved and your attempts to resolve the problem – Nico Haase Mar 11 '22 at 12:18
  • in the repo [Form with input textboxes as required](https://codesandbox.io/s/zgpqse?module=/example.js) when we click on submit button if we have a required field it doesnt submit the form, but when we have a dropdown how to handle required scenario [form with dropdown](https://codesandbox.io/s/cokfqy?module=/example.js) this the repo for dropdown inside form – umgolla Mar 11 '22 at 13:29
  • Please add all clarification to your question by editing it – Nico Haase Mar 11 '22 at 13:44
  • Post your code here and any errors or exceptions you might be getting. – mxmissile Mar 11 '22 at 14:35

0 Answers0