Jump to content


Welcome to the T3Leads Forum.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, create your account today.
To all the members who previously registered on the old T3Leads forum: your registration data were not transferred from the old forum. To get started on the new T3leads.com forum please register again to get access.

Photo

JavaScript form Configurations

Leads channels

  • Please log in to reply
No replies to this topic

#1 admin

admin

    Admin

  • Administrators
  • 38 posts

Posted 01 September 2013 - 02:09 PM

While setting up the form you can pass different parameters which can include and extend different capabilities. Parameters are passed in JSON object. Parameter values can be variables, JSON and even functions.

There are required parameters, such as UserID, which holds name of the user and optional parameters, such as DefaultValues, where you can pass array of different values by default.

To avoid any conflicts of variable names on your website, we made it possible to have any name and you will have to include the name of your variable in the initialization file when loading the form:
https://altohost.com...ms/init.php?vn={Name of your variable}
Example of Object Parameters:

<script type='text/javascript'>
var inputOptions = {
'UserID': 'test',
'Product': 'payday',
'ProductTemplate': 'ligths'
// ... other parameters
};
document.write('<script type="text/javascript" src="https://altohost.com/system/applicationforms/init.php?vn=inputOptions"><\/script>');
</script>

UserID - Required Parameter
(string)
Given option holds your ID.

Product - Required Parameter
(string)
Given option holds the product of the form.

ProductTemplate - Required Parameter
(string)
Given option hold the name of the form template. You can also pass more then one template by separating template name with commas. In this case, random template will be selected from the ones passed.

userCallBack
function (status, price) { }
Given option holds is used to hold the function which is called after the is sent. The function takes to parameters: status and price.
Status can have to values: Sold or Rejected
If the value of the status = Sold then variable price will hold the amount for which the lead was sold.

Visitor
(JSON Object) = {referrer:"", subaccount:"", keyword:"", clickid:""}
Visitor object is used to provide more detailed information about the visitor sending the lead. Visitor object has properties: referrer, subaccount, keyword, clickid

Detailed information on passing information about visitors

DefaultValues
(JSON Object)
DefaultValues are used if some of your client's information is already known to you, or you have a form on the main page of your website and want to pass that information to the main form in order for your client not to enter same information twice.
Detailed information on passing values by default

 

AllowUrlParser
(bool)
AllowUrlParser = true / false;
Automatically getting information by default from GET variables.

Detailed information on automatically getting information







Also tagged with one or more of these keywords: Leads channels

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Copyright © 2017 T3 leads