Populating email address from external site?

Options
We're planning on using a lightbox to gather email addresses as part of an upcoming campaign. The developer of that lightbox is asking for a link like this he could embed on the Submit button: http://www.website.com?blahblah=REPLACETHIS


To the best of my knowledge, Luminate doesn't have as simple a solution via URL. We do have a survey embed on our Drupal homepage that uses something like this:


<form action="siteURL" method="POST">

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

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

<input id="cons_email" name="cons_email" type="text" value="Email address..." size="14" maxlength="255" onfocus="if(this.value == 'Email address...'){this.value='';}" onblur="if(this.value == ''){this.value='Email address...';}" />

<span style="display: none;">

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

</form>


So, I guess my question is... how would I go about populating the Email Address from this external lightbox on the resulting/expanded Luminate survey? Is it as simple as http://www.website.com?blahblah=REPLACETHIS
Tagged:

Comments

  • J.D. Piland:

    We're planning on using a lightbox to gather email addresses as part of an upcoming campaign. The developer of that lightbox is asking for a link like this he could embed on the Submit button: http://www.website.com?blahblah=REPLACETHIS


    To the best of my knowledge, Luminate doesn't have as simple a solution via URL. We do have a survey embed on our Drupal homepage that uses something like this:


    <form action="siteURL" method="POST">

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

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

    <input id="cons_email" name="cons_email" type="text" value="Email address..." size="14" maxlength="255" onfocus="if(this.value == 'Email address...'){this.value='';}" onblur="if(this.value == ''){this.value='Email address...';}" />

    <span style="display: none;">

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

    </form>


    So, I guess my question is... how would I go about populating the Email Address from this external lightbox on the resulting/expanded Luminate survey? Is it as simple as http://www.website.com?blahblah=REPLACETHIS



    You example looks like a simple scraped survey. That's pretty easy, but you don't get much control on what happens after sumitting.


    "Embed on the Submit" sounds more like he wants a URL for the form to post to. Check out http://open.convio.com/api/#survey_api.submitSurvey_method.html. Though the URL would be a bit more complicated than that. He'd have to pass the api_key, version, and auth token. The auth token will complicate matters a bit. (And here's when you also say "Check out Noah's LuminateExtend on GitHub, which handles all that plumbing for you.")

    https://secure2.convio.net/organization/site/CRSurveyAPI?method=submitSurvey &api_key=value &v=value [&auth=value ] [ &center_id=value ] [ &error_redirect=value ] [ &redirect=value ] [ &response_format=xml | json ] [&sign_redirects=value ] [ &source=value ] [ &sub_source=value ] [ &success_redirect=value ] [&suppress_response_codes=value ] &survey_id=value [ &auth=value ] [ &cons_birth_date=value ] [ &cons_city=value ] [&cons_country=value ] [ &cons_county=value ] [ &cons_email=value ] [ &cons_email_format=value ] [&cons_email_opt_in=value ] [ &cons_employer=value ] [ &cons_first_name=value ] [ &cons_gender=value ] [&cons_last_name=value ] [ &cons_middle_name=value ] [ &cons_occupation=value ] [ &cons_password=value ] [&cons_phone=value ] [ &cons_postal_opt_in=value ] [ &cons_prof_suffix=value ] [ &cons_rep_password=value ] [&cons_state=value ] [ &cons_street1=value ] [ &cons_street2=value ] [ &cons_street3=value ] [ &cons_suffix=value ] [&cons_title=value ] [ &cons_user_name=value ] [ &cons_zip_code=value ] [ &denyApiSubmit=value ] [ &question_=value ] [&s_rememberMe=value ] [ &survey_cancel=value ] [ &auth=value ] [ &sso_auth_token=value ]


Categories