lotus script validation

2510 pts.
Tags:
formula
Lotus Notes
how to use like method in lotusscript to validate limited no. of characters in a field.
for e.g. like "####" is used to restrict only 4 digits in a text field using lotus script.
Similarly can we restrict to allow only specific characters and limited numbers in a text field


Software/Hardware used:
Lotus notes 8.5.3, lotus script

Answer Wiki

Thanks. We'll let you know when a new response is added.

In formula language this is something: it allows only 3 chars of combination of A,B,C from first, second and third character

@Matches(string;”{ABC}{ABC}{ABC}”).

similarly how to write LIKE syntax for the above same result.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • shivasanjay
    While searching in net and several trials with formulas I found that this works in lotusscript:
    string Like "[ABC][DEF][GHI]" it checks 3 chars from 3 set thus valid strings are ADG, ADH, etc.
    2,510 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following