I'm looking for help with a script I have created to validate a field. The purpose of the script is to limit the maximum entry of a numeric text entry field based on a cascading dropdown which includes the maximum value for a particular product. The user selects the product from the dropdown, then enters the quantity they want to order. This quantity is limited by the product they select. Here is the script that has been placed in the footer of the datapage. The first part of the script populates text field Virtual3 with the value of the cascading dropdown field Virtual2. This script works fine. The second part of the script attempts to validate the entry in text field Qty with the limit established by Virtual3. This script is not working and only avoids the Alert message when Qty = Virtual3, not when Qty is less than Virtual3. Please review and let me know if you have any suggestions.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
csporcic
I'm looking for help with a script I have created to validate a field. The purpose of the script is to limit the maximum entry of a numeric text entry field based on a cascading dropdown which includes the maximum value for a particular product. The user selects the product from the dropdown, then enters the quantity they want to order. This quantity is limited by the product they select. Here is the script that has been placed in the footer of the datapage. The first part of the script populates text field Virtual3 with the value of the cascading dropdown field Virtual2. This script works fine. The second part of the script attempts to validate the entry in text field Qty with the limit established by Virtual3. This script is not working and only avoids the Alert message when Qty = Virtual3, not when Qty is less than Virtual3. Please review and let me know if you have any suggestions.
Thanks, Chris
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.