Suppose I have two input text fields: one for a regular phone number and another for a cellphone number. How would I go about validating that at least one field is not empty?
E.g. if telephone is not empty but cellphone is empty, it's considered valid. if cellphone is not empty but telephone is empty, it's considered valid. if both telephone and cellphone are empty, it's considered invalid.
Is it possible for this to be expressed with FormEncode?
use document.GetElementByID to get the value in the input text
or- is the logical or operator, theifis evaluated as true if either of the conditions is trueEDIT: Changed || to or as with Python