We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to render a button that submits a form with a named value like this:
<button type="submit" name="remove_thing" value="some-id">Remove thing</button>
I can't seem to get this to work as you can't seem to change a button component to submit:
form.button( type: :submit, name: "remove_thing", value: "some-id", label: "Remove thing" )
I've also tried using a form.submit() but the label overrides the value.
form.submit()
Is there some other way of doing this?
The text was updated successfully, but these errors were encountered:
Thanks for letting us know.
@camertron given your knowledge of our forms setup, could you take a look at this and weigh in?
Sorry, something went wrong.
Hey @dereke, thanks for bringing this up! Seems like an oversight 😄 This PR should fix it: #3141
thanks so much for this!
camertron
Successfully merging a pull request may close this issue.
I want to render a button that submits a form with a named value like this:
I can't seem to get this to work as you can't seem to change a button component to submit:
I've also tried using a
form.submit()
but the label overrides the value.Is there some other way of doing this?
The text was updated successfully, but these errors were encountered: