Posted By Daniel on 11/02/2010 6:34 AM
Hello Everyone! I hope someone can give me a clever idea on how to handle this.
I have a LONG form broken into sections with multiple questions in each section. If they answer YES to any question in section1 for example they get a special email, any question in section2 a different email, etc.
I certainly dont want to set up a field evaluation for each question, and I am not even sure that would work...but do you have any ideas on how I can do that?
I am thinking that I probably need to do some sort of client side stuff first, set a field to true/false and evaluate that field in the completion event.
What say you DS community?
It sounds like you are the right path. Hope this points you in the right direction. Syntax may not be 100% correct but its an idea.
I create a new question using a hiddenfield called hiddenResponse e.g. $(hiddenResponse)
I would for each questions setup a client event and in the client event for each section, it would look something like this:
For each question in Section 1:
$(hiddenResponse) = 1;
For each question in Section 2:
$(hiddenResponse) = 2;
Keep in mind, you may have to do some type of IF-THEN-ELSE for your client Event, if you want to set your $(hiddenResponse) correctly. I can think of a User answering a question in Section 1 and setting your $(hiddenResponse) to 1 but then answering a question in Section 2 and it over rides it to 2. I wasnt clear on the many types of combination that can occur in your setup. In this case maybe you need another $(hiddenResponse) question e.g. $(hiddenResponse2)
Then, in the FORM COMPLETION EVENT, create your separate e-mail events as needed.
1. Create Event for Section 1
2. Event Type: Dynamic Email
3. Dynamic Field: Hidden Response
4. User Response: Equals, fill in box 1
5. Fill in your E-mail information
... Do same event setup for Section 2 etc, etc...
Hope this helps. Its what I would do.
-Chuck