Need an idea for a completion event.
Last Post 11-08-2010 01:45 PM by Chad Nash. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
DanielUser is Offline
going with the flow
going with the flow
Posts:40
Avatar

--
11-02-2010 04: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?
    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    11-03-2010 05:20 AM
    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

    DanielUser is Offline
    going with the flow
    going with the flow
    Posts:40
    Avatar

    --
    11-03-2010 05:26 AM
    Chuck - this will work perfectly! Give me your paypal addy and let me buy you a coffee or beer?
    ChuckUser is Offline
    river guide
    river guide
    Posts:157
    Avatar

    --
    11-03-2010 05:50 AM
    Posted By Daniel on 11/03/2010 7:26 AM
    Chuck - this will work perfectly! Give me your paypal addy and let me buy you a coffee or beer?

    I hope this does work for you.  No worries on the addy.   Just wanted to help out in any way I can.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    11-08-2010 01:45 PM
    Thanks for the useful post!

    -Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi