I have a numeric field in a form. I want to restrict the valid entries to 0 - 30 only. I have tried using some script tips I found online, but all I get are errors. Is there anyway to do this without using a script? If script is the only way, I would certainly appreciate help. Thanks in advance!
- Rick
Solved! Go to Solution.
Views
Replies
Total Likes
On the Exit event of the field put you can put something like the following (make sure the Script Editor is set to JavaScript):
if (this.rawValue < 0 || this.rawValue > 30) {
xfa.host.messageBox("Amount needs to be between 0 and 30.", "Error: Wrong Amount");
this.rawValue = null;
}
Views
Replies
Total Likes
On the Exit event of the field put you can put something like the following (make sure the Script Editor is set to JavaScript):
if (this.rawValue < 0 || this.rawValue > 30) {
xfa.host.messageBox("Amount needs to be between 0 and 30.", "Error: Wrong Amount");
this.rawValue = null;
}
Views
Replies
Total Likes
Amazing... thanks SO MUCH!! If I did not shave my head, I would have pulled all my hair out by now. So simple!
Views
Replies
Total Likes
Views
Likes
Replies