Hi Guys,
Can I get a little help please?
I have a button and I would like to add some javascript in it to check some fields.
If the field contains a "-" character then nothing
else appear a message.
if ((name_7.rawValue.match(/-/)==0 ) {
}
else {app.alert("Fill in with -!");}
Thanks,
encleadus
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The match function will return a null if there is no match, so try;
if (name_7.rawValue.match(/-/)==null)
{
app.alert("Fill in with -!");
}
Views
Replies
Total Likes
Hi,
The match function will return a null if there is no match, so try;
if (name_7.rawValue.match(/-/)==null)
{
app.alert("Fill in with -!");
}
Views
Replies
Total Likes
Thanks, that's worked!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies