Looking to capture s_subrc using a survey form outside of convio

Options

Hey guys,

I am looking for a way to capture a s_subsrc code when a survey form I have embedded outside of convio is filled out and submitted. Has this been done before? I know s_subsrc can be captured using the donation API but wanted to know if this also can be done using a survey form.

Tagged:

Comments

  • Yes, this can certainly be done. You can record source and sub-source by adding hidden inputs named "s_src" and "s_subsrc".

  • Noah Cooper:

    Yes, this can certainly be done. You can record source and sub-source by adding hidden inputs named "s_src" and "s_subsrc".

    Ahhh thank you sir! would this be a Hidden Text Update option from the drop list? Or are these hidden input fiends hard coded? I've used this in the past but it was for a donation form: // s_subsrc Section to grab from URL /* Get a parameter from the URL */  function getParm( name ) {    var pattern = "" + name + "=(*)";    var regex = new RegExp( pattern );    var results = regex.exec( window.location.search );    if( results == null )         return "";    else         return results; }   $(document).ready(function() {   document.getElementById('s_src').value=getParm('s_src');   document.getElementById('s_subsrc').value=getParm('s_subsrc'); });
  • Noah Cooper:

    Yes, this can certainly be done. You can record source and sub-source by adding hidden inputs named "s_src" and "s_subsrc".



    ncooper@convio.com wrote:

    Yes, this can certainly be done. You can record source and sub-source by adding hidden inputs named "s_src" and "s_subsrc".

    Noah,

    I had placed those hidden inputs within my external survey form but the s_src & s_subsrc are not being recorded... am I missing something.

    This is what I have as syntax:

    <form name="survey_8962" id="survey_8962" method="POST" action="http://www.ifcj.org/site/Survey" >

                                <input type="hidden" name="cons_info_component" id="cons_info_component" value="t" />

                                <div id="reg-label">

                                    <label for="cons_first_name">First Name <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_first_name" id="cons_first_name" value="" size="21" maxlength="50" />

                                </div>

                                <div id="reg-label">

                                    <label for="cons_last_name">Last Name <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_last_name" id="cons_last_name" value="" size="22" maxlength="50" />

                                </div>

                                <div id="reg-label">

                                    <label for="cons_email">Email: <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_email" id="cons_email" value="" size="45" maxlength="255" />

                                </div>

                                <br />

                                <input type="hidden" name="cons_mail_opt_in" id="cons_mail_opt_in" value="t" />

                                <input type="checkbox" name="cons_email_opt_in" id="cons_email_opt_in" checked="checked" />

                                <label for="cons_email_opt_in" id="cons_email_opt_in">Yes, I would like to receive e-mail from <em>The Fellowship</em></label>

                                <input type="hidden" id="cons_email_opt_in_requested" name="cons_email_opt_in_requested" value="true" />

                                <p class="submit"><input type="submit" name="ACTION_SUBMIT_SURVEY_RESPONSE" id="ACTION_SUBMIT_SURVEY_RESPONSE" value="Subscribe" class="Button" /></p>



    <input type="hidden" name="s_src" id="s_src" value="" />
    <input type="hidden" name="s_subsrc" id="s_subsrc" value="" />

                                <input type="hidden" name="SURVEY_ID" id="SURVEY_ID" value="8962" />

                                <input type="hidden" name="USER_HAS_TAKEN" id="USER_HAS_TAKEN" value="null" />

                                <input type="hidden" name="SURVEY_IGNORE_ERRORS" id="SURVEY_IGNORE_ERRORS" value="TRUE" />

                                <input type="hidden" name="QUESTION_STAG_APP_ID" id="QUESTION_STAG_APP_ID" value="" />

                                <input type="hidden" name="QUESTION_STAG_APP_REF_ID" id="QUESTION_STAG_APP_REF_ID" value="" />

                                <input type="hidden" name="QUESTION_STAG_CTX_TYPE" id="QUESTION_STAG_CTX_TYPE" value="" />

                                <input type="hidden" name="ERRORURL" id="ERRORURL" value="http://www.holylandmoments.org" />

                                <input type="hidden" name="NEXTURL" id="NEXTURL" value="http://www.holylandmoments.org" />

                            </form>

  • Matthew Andrade:


    ncooper@convio.com wrote:

    Yes, this can certainly be done. You can record source and sub-source by adding hidden inputs named "s_src" and "s_subsrc".

    Noah,

    I had placed those hidden inputs within my external survey form but the s_src & s_subsrc are not being recorded... am I missing something.

    This is what I have as syntax:

    <form name="survey_8962" id="survey_8962" method="POST" action="http://www.ifcj.org/site/Survey" >

                                <input type="hidden" name="cons_info_component" id="cons_info_component" value="t" />

                                <div id="reg-label">

                                    <label for="cons_first_name">First Name <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_first_name" id="cons_first_name" value="" size="21" maxlength="50" />

                                </div>

                                <div id="reg-label">

                                    <label for="cons_last_name">Last Name <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_last_name" id="cons_last_name" value="" size="22" maxlength="50" />

                                </div>

                                <div id="reg-label">

                                    <label for="cons_email">Email: <span style="color:#F00;">*</span></label>

                                </div>

                                <div id="reg-input">

                                    <input type="text" name="cons_email" id="cons_email" value="" size="45" maxlength="255" />

                                </div>

                                <br />

                                <input type="hidden" name="cons_mail_opt_in" id="cons_mail_opt_in" value="t" />

                                <input type="checkbox" name="cons_email_opt_in" id="cons_email_opt_in" checked="checked" />

                                <label for="cons_email_opt_in" id="cons_email_opt_in">Yes, I would like to receive e-mail from <em>The Fellowship</em></label>

                                <input type="hidden" id="cons_email_opt_in_requested" name="cons_email_opt_in_requested" value="true" />

                                <p class="submit"><input type="submit" name="ACTION_SUBMIT_SURVEY_RESPONSE" id="ACTION_SUBMIT_SURVEY_RESPONSE" value="Subscribe" class="Button" /></p>



    <input type="hidden" name="s_src" id="s_src" value="" />
    <input type="hidden" name="s_subsrc" id="s_subsrc" value="" />

                                <input type="hidden" name="SURVEY_ID" id="SURVEY_ID" value="8962" />

                                <input type="hidden" name="USER_HAS_TAKEN" id="USER_HAS_TAKEN" value="null" />

                                <input type="hidden" name="SURVEY_IGNORE_ERRORS" id="SURVEY_IGNORE_ERRORS" value="TRUE" />

                                <input type="hidden" name="QUESTION_STAG_APP_ID" id="QUESTION_STAG_APP_ID" value="" />

                                <input type="hidden" name="QUESTION_STAG_APP_REF_ID" id="QUESTION_STAG_APP_REF_ID" value="" />

                                <input type="hidden" name="QUESTION_STAG_CTX_TYPE" id="QUESTION_STAG_CTX_TYPE" value="" />

                                <input type="hidden" name="ERRORURL" id="ERRORURL" value="http://www.holylandmoments.org" />

                                <input type="hidden" name="NEXTURL" id="NEXTURL" value="http://www.holylandmoments.org" />

                            </form>

    I got it... there was a syntax error in my code.

Categories