Form not submitting
See original GitHub issue<Form method="post" action="/auth" style={styles.login}>
<FormField name="username" label="Username" required={true} type="text" />
<FormField name="password" label="Password" required={true} type="password" />
<Button type="submit" primary label="Login" />
</Form>
Expected Behavior
When I click the submit button, the form should post it’s contents to /auth
.
Actual Behavior
Nothing happens at all.
I’m guessing this is a design choice, and I need the form to submit. How can I enable conventional form behavior?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Html form not submitting data? - php
If your form is not submitting and you have checked the suggestions in the previous answers then its probably that you have ...
Read more >Can not submit form after validation
If the form can't be submitted, the reason might be caused by using name="submit" or id="submit" attribute for the submit button. Behind the...
Read more >Button does not submit form
Sometimes pressing a button does not result in submitting the form and calling JavaScript handlers of the submit event of the form.
Read more >Form not submitting!?
The error message “The form was unable to submit. Please contact the site administrator.” can appear if there are some JavaScript (JS) errors...
Read more ><input type="submit"> - HTML: HyperText Markup Language
A Boolean attribute which, if present, specifies that the form should not be validated before submission to the server.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it’s a reasonable request to allow using grommet’s Form and FormField without validation and have it automatically submit via the
action
property. It’s more aligned with a server-side rendering approach, but I would hope it’s possible.I resolved mine