langcog / web-cdi

7 stars 5 forks source link

Error message when parents type to much characters in comment box #285

Closed Cielke-Hendriks closed 3 years ago

Cielke-Hendriks commented 4 years ago

When parents type to many characters in the comment box, can an appropriate error message be generated so parents know what the problem is? Perhaps the evaluation of the amount of characters can take place when they click on next page.

HenryMehta commented 3 years ago

@Cielke-Hendriks It is very difficult to add validation code here because of how the forms were originally written. It is easy to limit the characters available to type within the box. It doesn't give an error but ensures only 600 characters. Deploying to development now. Is this sufficient or do you want the work done to provide validation error checking and a warning to parents?

HenryMehta commented 3 years ago

@Cielke-Hendriks Just made an improvement to also give a counter of number of characters remaining

Cielke-Hendriks commented 3 years ago

I think this is perfect, thank you. Maybe you could add "tekens over" (characters remaining) after the counter, to make it more clear to the parents what the number is about.