Check with button if a field contains a specific character else message box if not


hi guys,

 

can little please?

i have button , add javascript in check fields.

if field contains "-" character nothing

else appear message.

 

if ((name_7.rawvalue.match(/-/)==0 ) {

 

          }

else {app.alert("fill in -!");}

 

thanks,

encleadus

hi,

 

the match function return null if there no match, try;

 

if (name_7.rawvalue.match(/-/)==null)

{

    app.alert("fill in -!");

}



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support