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.

[UX] Unable to have two SubmitAction Buttons *and* validation

See original GitHub issue

Platform

  • .NET WPF (#5137)
  • Android (#5152)
  • iOS (#5148)
  • JavaScript (#5136)
  • UWP (#5141)
  • Shared Model (#5139)
  • Schema (#5140)
  • Merge feature branch to main (#5078)

Author or host

Author

If you’re an author, who are you sending cards to?

Own host.

Version of SDK

2.5.0

Details

With 1.3, input validation and required was added to some of the input controls, which is great. However, I’m running into a problem whereby I need multiple SubmitAction buttons on the page for different purposes, but none of them will work unless all the validation has been met.

User scenario: I create a form card with several Input.Text fields, at the bottom, I have a SubmitAction button with a label and id of “Submit”, but I also want to offer the user a way to cancel this screen and go back to the previous screen, so I would add another SubmitAction button with a label and id of “Cancel”, but the user can’t do anything with the cancel button because the form validation may not be meeting the required validation criteria.

This would apply to any additional SubmitAction buttons in the card (maybe I have a logo image with an attached SubmitAction that takes the user back to the “home” card, for example), none of these will work unless the user actually fills in all the forms.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
scottlovegrovecommented, Nov 13, 2020

@dclaux as long as it is replaced with something I’m OK with that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error message or disabled action button
2 Answers. You don't want to disable the submit action button. The user will see the form with corresponding buttons. If some input...
Read more >
Disable the Submit button if form validation is incomplete
If you disable the Submit button until the user has filled in all the fields, it's called a “mandatory field.” When the user...
Read more >
Submit / Reset Buttons - Order in the Form
When it comes to putting the submit and reset buttons on your forms, what order do you use? [SUBMIT] [RESET]. or [RESET] [SUBMIT]....
Read more >
Forms best practice
Avoid disabled buttons. They have poor contrast and can cause confusion. Graphic of a form field with a left aligned continue button. Research...
Read more >
A Complete Guide to Links and Buttons
Our complete guide to links, buttons, and button-like inputs in HTML, CSS, and JavaScript.
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