Hi there,
I am trying to add a check on validation of my form. The form enables users to input size and
price of products. For the size I have a picklist (dropdown) of available fluid measures
(25 ml, 50 ml, 75 ml etc.). This field is called 'Size'. Sometimes, however, the user might
not know the actual size of the product in fluid measurements. In that case I would like them
to provide a description of the size in a single line field (Operator_Name_for_Size). This is
the code that I am using, but when I make an entry without filling in size (ie. leave it
on 'Select') the system accepts the record.
if ((input.Size == null) && (input.Operator_Name_for_Size == null))
{ alert ("If fluid measure is not available, please enter a description
of the size"); cancel submit; }
Can anybody help?
with thanks