Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
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.
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 -!");
View solution in original post
Thanks, that's worked!
Views
Likes
Replies