Genesys Engage on-premises

 View Only
Discussion Thread View
  • 1.  Chat Widget field Validation - white space

    Posted 08-11-2022 23:17
    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;


    Vernon van Dam
    Technical Consultant
    NTT Australia Pty Ltd.

  • 2.  RE: Chat Widget field Validation - white space

    Posted 09-22-2022 14:03
    Hey there Vernon!  I apologize for the delayed response to your post. 

    I am working behind the scenes with Product and Engineering to get a solution for your issue. We will post an update as soon as possible.

    In the meantime, feel free to
    open a support request with Genesys Customer Care to troubleshoot this issue.

    Talk to you soon!

    Ginger Alford
    Program Manager, Product Strategy & Operations
    Genesys - Employee

Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources