Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Validating a token


This topic is 8150 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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>

Link to comment
Share on other sites

  • 1 month later...

This topic is 8150 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.