Skip to content
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

IDEA GATHERING: Field validation for drafts and posting idea (sub-issue of #1786) #1993

Open
Tracked by #1950
BeccaMelhuish opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels
HOLD in pre-live Issues in pre-live that should *not* yet be released to production Story of Estonia Issues needing implementation before Story of Estonia launch UX Priority UX issues that are important to fix relatively soon

Comments

@BeccaMelhuish
Copy link
Contributor

As discussed in PM and here #1957 we need to sort out the field validation for add your idea field.

Let's do it like this, as @DiverVM suggested:

  • Both 'Save as draft' and 'Add you idea' buttons are always active
  • When user clicks 'Save as draft', we check that the idea heading is filled in. If it is isn't, this triggers the 'Field is mandatory' error.
  • When user clicks 'Add you idea', we check that all fields are filled in. If any of them aren't, this triggers the 'Field is mandatory' error for that/those fields.

Side note if relevant: 'Field is mandatory' is fine as the error message for all such fields (The '0 to X characters' is a bit unexpected/confusing anyway).

Marking as a sub-issue of #1786 draft ideas and putting to in progress for @DiverVM. Should be fixed before we release drafts :)

@BeccaMelhuish BeccaMelhuish added HOLD in pre-live Issues in pre-live that should *not* yet be released to production Story of Estonia Issues needing implementation before Story of Estonia launch UX Priority UX issues that are important to fix relatively soon labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HOLD in pre-live Issues in pre-live that should *not* yet be released to production Story of Estonia Issues needing implementation before Story of Estonia launch UX Priority UX issues that are important to fix relatively soon
Projects
Status: Now - In Progress
Development

No branches or pull requests

2 participants