Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Hi, is it possible to pass a variable (or value) from a page on one site (eg a user name) to a formassembly form..is essence prefilling that field. Is there an example of how to do this intelligently somewhere please.

    Example: A user is logged into my blog. I want them to be able to click a button and get to a formassembly form with the Username and Email pre filled out from values I can pass from my blog

    Many thanks
    •  
      CommentAuthorcedsav
    • CommentTimeOct 29th 2007
     
    Hi,

    Yes it's possible (but not documented yet). Here's how it works:

    1. First, you need to add the following code to your form:

    <script type="text/javascript" src="http://app.formassembly.com/js/populate_form.js"></script>

    If you're hosting the form on your site, simply copy&paste it in your HTML. If the form is on FormAssembly.com, you can paste the code in the Form Builder, in the form's advanced properties panel (click on your form's name, then on the 'advanced' tab).

    2. Now you can pre-fill any form fields by providing the data in the link. It follows this structure:
    http://link_to_your_form?field_name=field_value&other_field_name=other_field_value

    Here's an example:
    http://app.formassembly.com/forms/view/1259?id-8020459883480=lastname&id-8020459505254=firstname

    To know what the field names are, you need look at the HTML source code, find the relevant tag and use the value of the 'name' attribute. If you're not familiar with HTML, you can email the support the link to your form and what field you're trying to pre-fill and we'll find the field names for you.

    Hope this helps.