May 8, 200223 yr Is there a way to validate this field to be a required field? The javascrpit I use doesn't work with a token. <input name="-Token.7" value="" size=30> Thank you Kent
May 9, 200223 yr JavaScript will validate any input field regardless of destination -- Token or field. What is really the problem?
May 9, 200223 yr Author I changed the input field names to a normal name and the javascript works fine. But when I swithch it back to the token name the page passes without checking to see if this field has an input? Is your javascript different than mine to make the token work? Thank you Kent <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- function MustNotBeBlank( theElement ) { if ( theElement.value == "" ) return false; else return true; } function ValidateForm() { msg = ""; formOkay = true; if ( !MustNotBeBlank( document.forms[0].-Token.7 ) ) { msg = msg + "t- Your first name has not been enteredr"; formOkay = false; } if ( !MustNotBeBlank( document.forms[0].-Token.8 ) ) { msg = msg + "t- Your last name has not been enteredr"; formOkay = false; } if ( formOkay ) { return true; } else { alert( "We can not start your registration because rr" + msg + " rPlease enter this information and try again."); return false; } } //--> </SCRIPT>
Create an account or sign in to comment