Validating a text field
Hi I'm new to the Edge Animate and I have been working on a project that requires text input.
The code does not 'recognise' the value entered into the input field.
The expression for matching numbers and characters in the field is: /^[0-9a-z A-Z] $/ It’s must to provide validation in the select field.
* * Copyright (c) 2012 Yannick Albert ( * Licensed under the MIT license (NOTE: Comment Box question types cannot be validated.You can quickly validate the Multiple Textboxes question type to allow only numerical data (positive whole numbers), and to reveal the option to require a fixed sum.function text Alphanumeric(inputtext, alert Msg) // Function that checks whether the input characters are restricted according to defined by user.
function length Define(inputtext, min, max) // Function that checks whether a option is selected from the selector and if it's not it displays an alert message.
The action is quite straight forward, play label 03. I don't have much experience in Java Script, this piece of code are bits and pieces that I have put together from tutorial and a bit of help.