Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7428 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way to verify that a person chose a value from a value list via script? For reasons too long to explain here, I cannot use field validation on this project so all validations are done by scripting. Thanks!

Posted

Yes, you will need to include an "If [ ]" script step with a validation test, using a formula along the lines of:

+ If [PatternCount(ValueListItems("YourDatabaseName.fp5", "YourValueListName"), YourTargetField)]

Followed by a "Show Message" step (with appropriate admonishment for the user smile.gif ) and a "Go to Field" directed at the 'YourTargetField' field.

  • 1 year later...
  • Newbies
Posted

Actually, this verification fails if the user i entering an shortened version of the Value List Item as long as it is still matching the pattern count; e.g. if the ValueList item says "Green Potatoes" but the user deletes the word "Potatoes" from the entry, the above solution would still approve the entry.

The only way i found until now to 100% ensure the entry conforms with the Value List is a related file where the ValueList takes its values from, and the Verification Script counts the matched records and OK's it only if there IS a matching entry n the related file (it also works ith not isvalid).

Does anybody has an easier solution for this?

This topic is 7428 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.