Hi
I want to show a warning message if a length of a value entered in a field is not 13!
I want to show it only once and after the user clics OK it shouldnt appear again
Thanks
Hi
I want to show a warning message if a length of a value entered in a field is not 13!
I want to show it only once and after the user clics OK it shouldnt appear again
Thanks
Subject: Validation
@if(@length(@thisvalue)!=13;@failure(“errormessage”);@success);
If you only want this warning to appear one time you must do as follows:
@if(@length(@thisvalue)!=13 & dummy!=1;@do(@failure(“errormessage”);field dummy:=1);@success);
make a hidden dummy-field (name: dummy)… and it should work… !!!
Good Luck
Soren, http://www.zoomtek.dk
Subject: RE: Validation
I modified it a little bit! Because no errormessage apeared at all
@if(@length(jmbg)!=13 & dummy !=1;
@Do
(
@prompt([ok];“Upozorenje”;“Pogrešan JMBG, molimo provjerite JMBG!”);
FIELD dummy:=1
);
@success);
Now it apears adn lets me enter a value in anothr field and then apears again!
The value of dummy doesnt change att all
Subject: RE: Validation
You need to use @SetField instead to change the value of dummy.