Can someone point me in the right direction, please?
I'm trying to validate some form fields in VI using dtc's.
I have an onClick event which reads all values from the page and writes them to the db using addImmediate.
I would like to get the values from the form and rewrite the form with the correctly filled in values included and the incorrect ones' label in red.
The question is, since you cannot create dtc's in script on the fly, how can I do this?
Or do I have to use error messages one by one i.e.
if field.value = "" then
response.write "You must fill in field."
end if
Thanks for any advice.
I'm trying to validate some form fields in VI using dtc's.
I have an onClick event which reads all values from the page and writes them to the db using addImmediate.
I would like to get the values from the form and rewrite the form with the correctly filled in values included and the incorrect ones' label in red.
The question is, since you cannot create dtc's in script on the fly, how can I do this?
Or do I have to use error messages one by one i.e.
if field.value = "" then
response.write "You must fill in field."
end if
Thanks for any advice.