Follow

New! Pass contact information from ANY online webform to your Booking Link for easier scheduling!

New! Pass contact information from ANY online webform to your Booking Link for easier scheduling!

Do your customers fill out an online webform for lead generation or to hear more about a product or service? Want to pass the information from the webform to your AppointmentCore Booking Link, so that they don't have to re-enter their information after filling out the form? Check out the awesome new solution below!

1) Simply set up your online webform to pass the webform info along to the Thank-You page of the webform via the URL and make sure the variable names for the forms are:

First Name - fname
Last Name - lname
Company - company
Address 1 - address1
Address 2 - address2
Job Title - job_title
City - city
State - state
Mobile Phone - mobile_phone
Phone - phone
Zip - zip
Country - country

Note: For mapping of custom fields, you will need to locate the custom field number from AppointmentCore. More details on that coming soon!

A sample URL after passing the contact fields should look like this:

http://www.scheduleyou.in/aewK66Y?fname=Name1&email=email@domain.com&lname=Name2&company=Co&address1=addr1&address2=addr2&job_title=job&city=Abc&state=FL&mobile_phone=123&phone=345&zip=444&country=United%20States

2) Place this script in the AppointmentCore Header of your Booking Link:

<script type='text/javascript'>
var setFormParams = function() {
    var sPageURL = decodeURIComponent(window.location.search.substring(1)),
        sURLVariables = sPageURL.split('&'),
        sParameterName,
        i,
        fieldSelector;

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');
        if(sParameterName && sParameterName != ""){
            if (sParameterName[0] == 'country')
                $('[name='+sParameterName[0]+']').select2('val', sParameterName[1]);
            else {
                fieldSelector = "#form-appt input[name=" + sParameterName[0] + "]";
                $(fieldSelector).val(sParameterName[1]);
            }
        }
    }
};

$(function(){
    setFormParams();
});
</script>

3) Set the Thank-You page of your webform as the Booking Link URL

This will vary depending on the type of webform service that you use. You may need to have a developer handy! If you have any questions, shoot us an email at askus@appointmentcore.com on getting help linking your form.

That's it! Be sure to test it before use with actual bookings. Happy scheduling!

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk