New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding custom fields into proactive form window #540
Comments
If someone is in need of this feature then ask in comment. I've implemented this in my code. |
Could you share a code so i could incorporate in official version. |
yes why not.. I'm using old version however you will get idea by having look. Step- 1 Right after
add this Step -2 right after add below $inputData->name_items = array(); and then right after $validationFields['Userphone'] = new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' ); add below // validate additional_data code in proactive chat
// end validate additional_data code in proactive chat and then right after if ($userInstance->requires_email == 1) { add below // validate and insert additional_data code in proactive chat
that's all you need to do.. updating two files :) and don't forget to update email template code {additional_data} |
Implemented. Pending new version release. |
Proactive form window should have option to add custom fields like this:
LHCChatOptions.attr = new Array();
LHCChatOptions.attr.push({'name':'City','value':'','type':'text','size':10,'req':true});
LHCChatOptions.attr.push({'name':'State','value':'','type':'text','size':10,'req':true});
The text was updated successfully, but these errors were encountered: