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.

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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ericsoderberghpcommented, May 20, 2019

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.

0reactions
kelvinsekxcommented, Oct 25, 2021

I resolved mine

Read more comments on GitHub >

github_iconTop 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 >

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