Making text field entry mandatory
Jul 17, 2018
Cher Storyline peeps
I am working on a project and I want the learner to type in their name at the start. However, I want this field to be a mandatory field so that they cannot continue until they've added their name. The scenario is "Hello, my name is" then click one of buttons depending on the path they want to take. I have the text entry variable set up. I also have a layer that says "Error" if they haven't typed in their name. I can't seem to get the button to work when they do add their name in.
Any suggestions?
Thanks
Geraldine
9 Replies
Hi Geraldine
can you share the slide and let us know which version of SL you are using - someone will be sure to help you.
Hi Wendy / Matthew
Thanks for getting back to me. Here is a version of the slide that I am trying to figure out.
Cheers
Geraldine
Hi Geraldine
how are they clicking to get to the next slide you only have the swipe active so no Next button comes up. If it did, then I would add the 'show error layer when user clicks/swipes the Next button on condition that variable not equal to blank - where blank is not typed just left blank.
Also the variable you are referencing is different in the triggers - do you want to use the 'Name' or 'Yourname'
Hi Wendy
From this page the learner needs to click either the "Windows" or "Mac" button and it will take them to that scene (I didn't include as its a big file) - that is why I removed the jump to next page.
The variable should be "Yourname".
Thanks
Geraldine
Gerlandine, you have two variables: Name and Yourname. The text entry is connected to the Name variable but you're looking at the Yourname variable in the condition for showing the error.
The other thing is that you will not know what the user typed (or not typed) until they click away from the text field. So, they click on a button or something else on the screen. Maybe you want a Submit button for the name or something, and then you can check the Name (not the Yourname).
Basically, what Wendy said :)
Hi Geraldine
I've adjusted your triggers and added in a couple to make it work in the example...here is a Peek
attached is the file. You might want to hide the Error layer once they click in the text field.
Hope that helps
Hi Wendy
Thank you so much! that worked perfectly. I really appreciate your assistance with this one.
Have a great day :-)
Cheers
Geraldine
Glad that helped you Geraldine :-)
This discussion is closed. You can start a new discussion or contact Articulate Support.