Hi,
This does what you want:
Code:
<input type="hidden" name="conditions"
value=":##IF#field1~/^YES$/#field2##If field1 is YES then field2 must contain data.#" />
Would also like to do it so if field1 is YES then field2 AND field3 are required.
You need two conditions for this:
Code:
<input type="hidden" name="conditions"
value=":##IF#field1~/^YES$/#field2##If field1 is YES then field2 must contain data.#:
#IF#field1~/^YES$/#field3##If field1 is YES then field3 must contain data.#" />
Doesn't seem to be working, maybe I'm just dumb but the instructions in the script seem rather vague.
Conditions are difficult. You really need to be a programmer with a knowledge of regular expressions to successfully create conditions.
The instructions we've given are sufficient for qualified programmers, but are probably not much use for anyone else.
We do have plans for a HOW-TO guide to assist non-programmers, but it's a bit like trying to describe how to do a heart transplant (slight exaggeration, but it makes the point).
Bookmarks