Hello there,
I have a numeric field, and I would like to enter a specific numbers in this field; numbers between 10 to 40.
How can this be achieved?
Kindly note that I'm new to Livecycle Designer.
Thank you in advance,
Solved! Go to Solution.
Views
Replies
Total Likes
On the exit event of the field you woudl have to write code that will check that the user entered a number in that range. Something like this javascript here:
if (this.rawValue < 10 || this.rawValue > 40) {
app.alert("You have entered a number that is outside of the acceptable range. It must be between 10 and 40. Please try again");
xfa.host.setFocus("Insert name of your field here");
}
Hope that helps
Paul
Views
Replies
Total Likes
Please help!
Views
Replies
Total Likes
On the exit event of the field you woudl have to write code that will check that the user entered a number in that range. Something like this javascript here:
if (this.rawValue < 10 || this.rawValue > 40) {
app.alert("You have entered a number that is outside of the acceptable range. It must be between 10 and 40. Please try again");
xfa.host.setFocus("Insert name of your field here");
}
Hope that helps
Paul
Views
Replies
Total Likes
Thank you so much!
Views
Replies
Total Likes