Service Tax Validation in Lotus Script

Hi experts,

I am designing a Customer account creation form here i am creating a field as service tax my condition is it should contail FIRST FIVE CHARACTERS THEN FOUR NUMBERS THEN THREE CHARACTERS THEN THREE NUMBERS i should code this using lotus script

since i am new to this technology do guide me

Thanks in Advance,

Thiyagu

Subject: Have you considered, the simple Validation formulas on Data Entry Fields ?

You can do this easily, using the @Formulas.Try this in a button you create in a Notes Rich Text field, like a Mail Body:

REM {By Peter Rosenberg};

REM {June 2012};

TaxFormat:=“???{0-9}{0-9}{0-9}{0-9}???{0-9}{0-9}{0-9}”;

TaxFormatReadable:=“abcde9999ABC999”;

input:=@Prompt([OkCancelEdit];“Enter value to test”;“Enter a value in this format”;TaxFormatReadable);

Result:=@If(@Matches(input;TaxFormat);“Value is in correct format”;“Value having wrong format”);

@Prompt([Ok];“Result of Format Check”;"Your value was determined to be: "+Result)

Subject: Needed this in Lotus Script

Hi peter,

  am putting all my validation in lotus script so can you provide this same formula language in lotus script

Thanks in advance,

Thiyagu

Subject: Take a look in domino designer help

The key function being used to achieve what you want is @matches. If you look in Domino Designer Help, you’ll see that @matches has a Lotusscript suggested equivalent of Like

So with that information, Domino Designer Help, you should be able to convert it pretty easily to LotusScript.

Subject: Use regexp or Lotusscript function Like

For simple things like what you describe, you can use “Like” in Lotusscript.If you have more complex expressions/pattern, use regular expressions (regexp) as I describe on my blog here: http://planetlotus.org/9e95bc