Hi all,
Looking for a little guidance here please. What I'm looking to do is check the value of a select box and if a certain option is selected, then check the value of a textarea for a string from a list.
So for example, using the following form, the logic I need to get working is:
OnSumbit - If cust_type EQ Private then does textarea contain 111,222 or 333?
I know how to get the validation to check if Private is selected and I know how to check for certain strings, I just don't know how to combine both of these to work together.
Thanks in advance for your input.
Looking for a little guidance here please. What I'm looking to do is check the value of a select box and if a certain option is selected, then check the value of a textarea for a string from a list.
So for example, using the following form, the logic I need to get working is:
OnSumbit - If cust_type EQ Private then does textarea contain 111,222 or 333?
I know how to get the validation to check if Private is selected and I know how to check for certain strings, I just don't know how to combine both of these to work together.
Code:
<form name="reportit" action="" method="POST">
<select name="cust_type">
<option>Contract</option>
<option>Private</option>
</select>
<textarea name="notes">Test 111 Test
</textarea>
<input type="submit" name="goforit" value="Proceed">
</form>
Thanks in advance for your input.