Here are the steps to validate a textbox.
Insert a Text Entry Field.
When we insert a text entry field, the TextEntry variable will be created automatically.
Here, we want to validate this text entry field where user must enter only email IDs.
Create a Boolean variable Validate with the default value “False”.
Rename the variable “TextEntry” as “Email” for our convenience.
Add a trigger such that “Adjust variable Validate to false when the slide timeline starts.”
var check = /^\w+([-+.’]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
var player = GetPlayer();
Now insert a button named “Submit”, and add trigger such that “Jump to next slide when user clicks the “Submit” button” on a condition Validate is equal to “True”
Now, publish your course and check the output.
Hope you find this blog useful. Do share your views.