Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

JavaScript will validate any input field regardless of destination -- Token or field.

What is really the problem?

  • 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>

I will guess the "-" will have problem with JS.

  • 1 month later...

not when you use: .elements['-Token'] = ...

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.