var preChatTemplate = {
//Form header color and Submit button color.
mainbgColor: '#0aa4db',
//Form Header Text and Submit button text color.
maintxColor: '#fff',
//Chat Form Title
heading: 'PTO Today',
//Chat form Welcome Message
textBanner: 'Please let us know your name and email address and we\'ll connect you with a live rep.',
//Submit Button Label.
SubmitLabel: 'Start Chat',
//Fields List - Maximum is 5
//All the values are mandatory and the script will not work if not available.
fields : {
field1 : {
//Type can be either text or title
type: "name",
//Label for Field Title, can be in any language
label: "Name",
//Field ID for Title
fieldId: "name",
//Required "yes" or "no"
required: "yes",
//Error text to be displayed
error: "Please Enter your name"
},
field2 : {
//Type for Name - Do not Change
type: "email",
//Label for Field Name, can be in any language
label: "Email",
//Default - Field ID for Name - Do Not Change
fieldId: "email",
//Required "yes" or "no"
required: "yes",
//Error text to be displayed
error: "Please Enter a valid email address"
}
}
};
window.fcSettings = {
token: "ec6b3db1-9caf-4a1a-bdf2-a7851529f4c3",
host: "https://wchat.freshchat.com",
siteId: "PTO Today",
tags: ["ptotoday"],
config: {
cssNames: {
widget: 'custom_fc_frame',
expanded: 'custom_fc_expanded'
}
},
onInit: function() {
console.log('widget init');
fcPreChatform.fcWidgetInit(preChatTemplate);
}
};
From Zombie runs to bubble runs, we've got your fun run covered.