-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
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
Add form validation for correct/incorrect committee ID in RAD form #3989
Comments
Convo about tracking errors: https://fecgov.slack.com/archives/C3X3K6EVA/p1611254477001600 |
Below is a list of each of the validation-related improvements we should include on the RAD analyst form:
Extra:
|
@patphongs @dorothyyeager @rfultz @bmathesonFEC The mockups include the form itself, and success and error messages. Would like thoughts on the language for the validation messages as well as the success and error messages. For the error message, we currently have two different versions: when the reCaptcha has failed and when a bad committee name or ID is included. Would love for folks to try to break the form to see what other error messages occur to make sure we're accounting for all the possibilities. Form validationSuccess messageError message |
For the contact information prompts, suggest changing "include" to "supply" (since that's the only thing we are asking them for). The rest makes sense to me. |
This is a huge improvement. Thank you for taking this on! I love it. My only comment is about "Not passed for human." two notes on that:
What do you think? |
@bmathesonFEC This is what I believe the error looks like when triggered by the reCaptcha: |
Yeah, that's definitely not informative. Yours is way better. I'm on board with all of your edits. Thanks for taking this on! |
@bmathesonFEC @patphongs Okay, great. I'm wondering though if we should retain the separate error messages, but make sure they are similar in appearance. Right now the error messages appear in two different places with different language. Any thoughts on that @patphongs? I can certainly design for both and whoever picks up the implementation can see what the technical limitations might be for each. |
@JonellaCulmer The form error messages are currently using default browser errors, which is the tooltip error that you see. I like the inline validation in red, which makes it more clear about what's needed to submit the form. I have a few comments below:
|
Thanks @patphongs
@patphongs Thank you, I didn't look at Other. It should look just like the "Your position or title" field:
Are we able to prevent the user from submitting with inline validation only?
What kind of conflicts are you imagining? Currently, when a user attempts to hit submit with in an incomplete form, the page scrolls up to that field and displays the tooltip. Are you saying the conflict is in displaying both? |
@bmathesonFEC Per Pat's first comment, I'd rather we remove that extra field than keep it. Is there a business need for the "Other" subject line when we require users to provide their question as well? We already require so many fields, if we can limit them, I'd like to lean in that direction. |
Yes, if there is anything that is invalid on the form, the user will not be able to submit until those errors are resolved.
Correct I think it would be a conflict displaying both. We wouldn't want a scenario where the tooltip would overlap on top of the inline validation errors. So choosing one method is best. |
Go ahead and remove the extra field for Subject after the user picks Other. After doing a few tests, I'm not seeing that the data collected in that field gets carried over into our system. Even if it is getting pulled into an obscure location that I'm not seeing, removing it won't disrupt our work RAD. As the main data user in RAD, I can vouch that it wouldn't add much value if we were getting it. |
@bmathesonFEC Thank you for looking into that. I'll include a note to remove the subject field in the implementation ticket. @patphongs Thanks, I'll elaborate further when the error validation should trigger in the implementation ticket and note we should remove the tooltips. Closing this ticket in favor of implementation ticket #4354 |
What we're after:
We need to consider and design for the addition of some form validation in the RAD form. Based on the changes here, we should consider making these changes consistent across the spectrum of FEC-related digital forms.
Specifically, the RAD form should include validation for the committee ID input. We need to inform our users whether or not a correct committee name or ID had been input and if not provide feedback so they know to fix it, rather than submit and incorrect form and be forced to start all over again.
Action items:
Completion criteria:
The text was updated successfully, but these errors were encountered: