Validating content in textboxes
I have a course that requires some user entered variables to generate a certificate of completion at the end and parses the user enter text and quiz results to an in-house database.
I then created a count so that as each required variable changes (e.g. is completed) 1.0 is added to the slide count variable. When that variable is equal to 5, the NEXT button is enabled. This is set as a slide trigger.
In theory it works beautifully.
However - I've hit a snag with the count variable.
- IF an individual types content into a field and receives an error message, AND
- IF they then delete the contents of the field and leave the field blank (or enter content in the field that's incorrect) they will see another alert message relating to the formatting.
- BUT the count has already added +1.0 to the count variable at this point. If the field is left empty, or the formatting is wrong in the field, the NEXT button is still enabled, allowing the user to move along in the course.
This becomes an issue when the user attempts to finish the course; the data is never posted to the database.
Is there a way to set a trigger condition to check to see if the field is blank?