@ OYMjohn
I am guessing that I should upgrade to the latest version of cforms…
Never change a running system :-) There is a huge step between 7x and 10x, make sure you have plenty of backups in place (DB and cforms forms) – since 7x and 10x are not compatible & there will be a migration process.
That being said, is there a way to make a field required based on what was entered in a previous form. For instance, on my form (it's a simpel contact form,) the first question is "What is you preferred method of contact?" If the user selects "phone" I would like the "phone number" field to be required
Dynamically changing forms at run-time are not supported, the closest you'd get is indeed by using multi-part forms:
- form #1 has 'contact us by..' field and points by default to form #2 ('extended' form for "phone contact info")
- form #2 contains extra fields to be entered (e.g. phone, and alternative phone #)
- form #3 could be a fall back / pseudo form that e.g. only says 'thank you for your submission here are your details, please approve via submit button)
in my-functions.php you then need to decide at run-time which 'contact us by..' options was picked by the user and then need to determine the next form to route to.
There are examples in this forum and in the file mentioned above.
@ Jay Clark
URL?