Hey guys
I have configured the widget to do a validation on fields within the registration form. When entering single name/last name values, the validation works fine. But if the name or last name contains any white space, the validation fails to pass the validation process. Any idea how to handle entries with white space in it?
e.g. Name: John Paul - does not work as soon as a space is pressed between the names
Name: John - works fine and is valid.
Widget code is:
{
id: 'cx_webchat_form_firstname',
name: 'firstname',
maxlength: '100',
placeholder: 'Required',
label: 'First Name',
validateWhileTyping: true,
validate: function (event, form, input, label, $, CXBus, Common) {
if (input && input.val()) {
return true;
} else {
return false;
}
}
},
TIA,
Vernon
#Implementation------------------------------
Vernon van Dam
Technical Consultant
NTT Australia Pty Ltd.
------------------------------