question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FormsySelect required is not showing any error when submit the form

See original GitHub issue

Hi, i need to show a messge when the user hits the submit button and a value on the FormsySelect are not selected (similar to a text field behavior).

If i use:

validationErrors={{ isDefaultRequiredValue: "Your error message when field is required", }}

The error is displayed, but inmeddiatly when the component is loaded.

Is there a way to do this validation when user hits the submit error? Thanks a lot

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
rojobuffalocommented, Sep 5, 2017

Use the required prop along with requiredError. validationError pairs with the prop validations.

0reactions
alienriquebmcommented, Sep 9, 2017

Well… i would really like to help you with a PR, but i’m affraid that i will messed up your great code xD I hope that you can help me with this soon. Please, don’t forgett me @rojobuffalo. And thanks a lot for you attention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - <select> required not working - Stack Overflow
I'am using this code along with php ...
Read more >
HTML <select> required Attribute not working in Visualforce?
In my code below I have two fields of type text and select, the validation runs on the text field if it remains...
Read more >
HTML Required Not Working: 5 Issues That Cause It
The error "HTML required not working" can be a hassle, but it can be fixed. Read about the common issues to help you...
Read more >
HTML select required Attribute - W3Schools
The required attribute is a boolean attribute. When present, it specifies the user is required to select a value before submitting the form....
Read more >
<Select> field's validation errors are not shown if field ... - GitHub
I use Select components with placeholder values in my forms. And in many cases these fields are mandatory. And normally works everything just ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found