Validation that form fields have been completed by user

Michael Magoon shared this question 7 years ago
Answered

I am trying to figure the extend that I can use Conditions to validate that common fields in forms have been filled out by user. It looks to me that Justinmind has this capability, but I am having problems making it work correctly.


A few common examples:


"First Name" field has characters input (preferably only letters).


User has selected a country from the "Country" dropdown.


User has selected all three elements from "Birthdate" dropdown.


User has chosen at least one option from radio button.

Best Answer
photo

Check out the condition for the event in the attached prototype.

Comments (13)

photo
1

Take a look at the screen called 'Health plans' in this prototype http://www.justinmind.com/extras/down.... Select the events in the button labelled 'continue'. You'll see a lot of form validations there and some match the ones you ask for.

photo
1

I found the correct screen, but I do not see a Continue button. Nor is it mentioned in the Screen report. Is it possible that the prototype has been changed? I just downloaded it.

photo
1

Sorry, the prototype was wrong. Can you download it again please? Remember to clean your internet browser's cache.

photo
1

That is very helpful. Thanks!


By the way, this is exactly the kind of event that would be useful in the Event Library that I mentioned in another thread.

photo
1

You're welcome! By the way, we are taking very seriously your suggestion about the Event Library. We are thinking about publish one post per week at least with one of the event examples that we've shared with other users.

photo
1

I had the same question, and I've downloaded the Health Assurance prototype referenced and looked at the Health Plans screen. I'm looking at the "Check First Name" interaction, as this is the kind of field validation I need to do (just check to make sure the user has entered something in the field.) I see that the condition is set to "when [First Name Input = ], then show error message, etc.


How do I get a blank entry into the second box of the condition statement? By default, it reads "Double click to edit or drag & drop a component." I've tried typing in double quotes, null, and space...all with no luck.


Any suggestions?


Thanks!!


Lauren

photo
1

You have to go to 'constants' in the Expression builder and drag the text one 'Aaa'. By default is an empty text.

photo
1

Does this prototype still exists? The link takes you to a dead page and I am also having problems with this

photo
1

Hi Stacy,


Here is the link to that prototype: http://d2ld3he4yll0xl.cloudfront.net/...


Best,


Marc

photo
1

Thanks - looks like the validation doesn't work on this either, though I can see how using 'error1plan' enables you to catch whether mandatory fields have been complete which is nice.


However, I am able to fill all the fields in except the date of birth and continue ... Although the field does flash red briefly while moving to the next screen?


This only seems to be a problem with date fields?

photo
1

Help :-(


Please


I have followed this example for my own form.


I have a button at the end of the screen "Next"


I have a variable called "Next_Validation", default value = "false"


Against the button I have set up events such that on click it runs through each of the mandatory fields and checks to see if they have been completed:


... If blank then set Next_Validation = false, and show message next to field which says "please complete"


... If complete set Next_Validation = true, and show tick next to field


It just doesn't work.


My first field is a date field and this doesn't seem to have an effect on the value of the variable at a all


My second field is a text field and if I complete it, click the continue button, then clear it and hit it again it continues - despite the field being blank?


Has anyone successfully managed to use this method???


I would glady share my document if it helps

photo
1

Could you send the prototype to jim.support at justinmind.com? We will take a look at it.

photo
1

Check out the condition for the event in the attached prototype.