var preChatTemplate = {
//Form header color and Submit button color.
mainbgColor: '#ff7e00',
//Form Header Text and Submit button text color.
maintxColor: '#fff',
//Chat Form Title
heading: 'Chat with us.',
//Chat form Welcome Message
textBanner: 'Please enter your contact details to start chat. ??????????????????????????????????????????',
//Submit Button Label.
SubmitLabel: 'Start / ?????',
//Fields List - Maximum is 5
//All the values are mandatory and the script will not work if not available.
fields : {
field1 : {
//Type for Name - Do not Change
type: "name",
//Label for Field Name, can be in any language
label: "Name / ????",
//Default - Field ID for Name - Do Not Change
fieldId: "name",
//Required "yes" or "no"
required: "yes",
//Error text to be displayed
error: "Please Enter a valid name"
},
field2 : {
//Type for Email - Do Not Change
type: "email",
//Label for Field Email, can be in any language
label: "Email / ?????",
//Default - Field ID for Email - Do Not Change
fieldId: "email",
//Required "yes" or "no"
required: "yes",
//Error text to be displayed
error: "Please Enter a valid Email"
},
field3 : {
//Type for Phone - Do Not Change
type: "phone",
//Label for Field Phone, can be in any language
label: "Phone / ????????",
//Default - Field ID for Phone - Do Not Change
fieldId: "phone",
//Required "yes" or "no"
required: "yes",
//Error text to be displayed
error: "Please Enter a valid Phone Number"
},
field4 : {
//Type for Phone - Do Not Change
type: "checkbox",
//Label for Field Phone, can be in any language
label: "",
style: " width: auto !important;margin-right: 10px !important;",
//Default - Field ID for Phone - Do Not Change
fieldId: "terms",
//Required "yes" or "no"
required: "yes",
content: "Accept Terms and Privacy Policy",
error: "Please accept our terms and conditions"
},
}
};
window.fcSettings = {
token: "b7d9e733-7fce-4f91-826c-53c8fd598436",
host: "https://wchat.freshchat.com",
config: {
cssNames: {
//The below element is mandatory. Please add any custom class or leave the default.
widget: 'custom_fc_frame',
//The below element is mandatory. Please add any custom class or leave the default.
expanded: 'custom_fc_expanded'
}
},
onInit: function() {
console.log('widget init');
fcPreChatform.fcWidgetInit(preChatTemplate);
}
};
Cookie Policy
This website uses cookies to improve your user experience