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

Question IDs - simplify validation #2143

Closed
janagombitova opened this issue Jun 6, 2017 · 6 comments
Closed

Question IDs - simplify validation #2143

janagombitova opened this issue Jun 6, 2017 · 6 comments
Assignees
Labels

Comments

@janagombitova
Copy link
Contributor

Current implementation

When creating a question ID we validate two things: the format, uniqueness.

If the input does not pass the validation we show in red the info above the text field. The user can hit Save, to save the question, but he will receive a modal dialogue telling him the same info as the red error message. He needs to confirm, what brings him back to the question. He cannot save the question until he makes adjustments to the ID

screen shot 2017-06-06 at 12 29 37

screen shot 2017-06-06 at 12 29 46

Validation error messages

screen shot 2017-06-06 at 12 29 26

screen shot 2017-06-06 at 12 29 56

Modal dialogues after trying to save the question

If the user hits Cancel, then the ID is not saved.

Improvement

Would it be possible to instead of showing that the ID format is not correct, being able to click on save and getting the pop up message, to simply validate the field (as we do) and disable the save button, removing the modal dialogues?

Secondly, the text for the uniqueness validation needs to be improved:
Current text: the question id is not unique
New text:

  • option A: Question ID is not unique
  • option B: Question ID already exists
  • option C: ... to be defined ...

@muloem and @kymni what are your thoughts?

@janagombitova
Copy link
Contributor Author

Before we make any improvements to the validation of the question IDs we need to agree on if we change how we call this feature: #2170

@kymni
Copy link
Contributor

kymni commented Jan 8, 2018

#2170 remains open, what's the way forward for this?

@janagombitova
Copy link
Contributor Author

janagombitova commented Jan 8, 2018

My suggestion would be to 1st handle #2170 so move away from Question ID and implement Variable name throughout all Flow components and then handle this issue by disabling Save if the Variable name is not correct and simplify the validation notes.

@janagombitova
Copy link
Contributor Author

@kymni I have noticed one small detail that need to be improved before this can go live: if the variable name is not unique, the current error message says: Variable name not unique. Can you please change it to: Variable name is not unique

screen shot 2018-02-06 at 10 02 37

@kymni
Copy link
Contributor

kymni commented Feb 6, 2018

Slightly related but current in current implementation, the error message is hard-coded. I'll create a separate issue to change this so that error message is pulled from transifex while at the same time implementing your change request

@janagombitova
Copy link
Contributor Author

Perfect, thanks @kymni. This one is then ready to roll 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants