URL setters going from petition/advocacy form to ecard form?

Options
Hi friends,


Does anyone know if it's possible to grab basic constituent fields like first name, last name and an email address, pass them through the url setters to an ecard/thank you form so the fields are prepoluated on the ecard form?


If so, I could certainly use a trick or two.


Thank you!

Sara



 
Tagged:

Comments

  • Hi Sara - 


    You can use a little bit of javascript to move information from the URL specific form fields in the main TAF/Tell A Friend module (/site/TellAFriend).

    If you're using the Advocacy module, that TAF is a little different and will pre-populate based on whoever took action. 


    /site/TellAFriend?page=http://www.yoursitehere.com&email=bob@bob.com&fname=sally&lname=heaven

    <script>
    jQuery(document).ready(function() {
    var urlEmail = '[[S334:email]]',
    urlFname = '[[S334:fname]]',
    urlLname = '[[S334:lname]]';

    if (urlEmail) {
    jQuery('input#youremail').val(urlEmail);
      jQuery('input#first_name').val(urlFname);
    jQuery('input#last_name').val(urlLname);
    }
    });
    </script>

    Notes: S334 is a Convio S Tag that is looking for parameter values from the URL. And the form field names for the eCard module are slightly different than TellAFriend. cons_first_name, cons_last_name and cons_email


    I'd also recommend updating your Google Analytics view to remove email, fname and lname from the query string parameters. This will aid in keeping personally identifiable information (pii) out of Google Analytics and your account in good standing with Google. 
  • Hi Sara (how fun - a fellow Sara)


    WOW - thank you!  I mostly understand this but I've got a few more questions about it.  We are using the advocacy module for the landing page/sign-up and then we redirect the user to the ecard page once the user hits sign-up. This is where we want the fields to be pre-populated with the information the user entered on the advocacy form.  I'd love to share the urls with you but it needs to remain private for now so if I could email you directly that would be super awesome. Is that possible?



    Sara Hoffman
    :

    Hi Sara - 


    You can use a little bit of javascript to move information from the URL specific form fields in the main TAF/Tell A Friend module (/site/TellAFriend).

    If you're using the Advocacy module, that TAF is a little different and will pre-populate based on whoever took action. 


    /site/TellAFriend?page=http://www.yoursitehere.com&email=bob@bob.com&fname=sally&lname=heaven


    <script>
    jQuery(document).ready(function() {
    var urlEmail = '[[S334:email]]',
    urlFname = '[[S334:fname]]',
    urlLname = '[[S334:lname]]';

    if (urlEmail) {
    jQuery('input#youremail').val(urlEmail);
      jQuery('input#first_name').val(urlFname);
    jQuery('input#last_name').val(urlLname);
    }
    });
    </script>

    Notes: S334 is a Convio S Tag that is looking for parameter values from the URL. And the form field names for the eCard module are slightly different than TellAFriend. cons_first_name, cons_last_name and cons_email


    I'd also recommend updating your Google Analytics view to remove email, fname and lname from the query string parameters. This will aid in keeping personally identifiable information (pii) out of Google Analytics and your account in good standing with Google. 

     

     

Categories