NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on May 10, 2011, 09:27:48 PM
-
please how do i make it that a tick box field must be tick to save record just like the required fields works
-
Hi,
You can validate the corresponding field in the validate embed and test for the required value.
If the value is not up to your wishes, Put your error message in Loc:alert and put the name of teh field in loc:invalid and cycle.
example : In de validate embed type the following:
if tickbox <> 1
loc:alert = 'Field is invalid. Box must be ticked.
loc:invalid = 'tickbox'
end
I don't know if you must cycle here.
Just try.
Rene
-
thanks rene that worked very well
-
Hallo,
You can put EXIT to stop executing next code. (if you have more code bellow this one)
if tickbox <> 1
loc:alert = 'Field is invalid. Box must be ticked.
loc:invalid = 'tickbox'
EXIT
end
Robert
-
Nice!
René
-
Robert,
I think you will better off if you say:
if p_web.gsv('TickBox') <> 1
ie, test for the Session Value. My 2 cents.
Cheers
Charl