Open web widget on contact form

2 Kommentare

  • Katie Dougherty
    Zendesk Community Team

    Hi Enrique,

    Thanks for reaching out!

    I would suggest viewing our article: Advanced customization of the Web Widget.

    My understanding is that you want to have both the live chat and contact form options enabled in the web widget, but on certain pages, you only want the contact form option available for your customers. 

    Lastly, I noticed that Dawn Anderson mentioned that they already "have got the script needed to open the 'chat form' and to 'open web widget'". If the above resources do not help solve your issue, I am mentioning Dawn here to see if that script is available to share from the Getting the web widget to open at the 'contact channels' page post. 

    0
  • James Hale

    A Google search brought me here. Same problem as OP, and the provided answer from Zendesk support didn't directly solve the problem.

    You can potentially suppress certain functionality on a per-page basis, but that would then prevent your users from using the opposing option. This is also problematic with SPAs.

      // Suppress the help centre, so that when the widget is opened, it goes straight to "Contact Us"
    zE('webWidget', 'updateSettings', {
    webWidget: {
    helpCenter: {
    suppress: true,
    },
    },
    });

    // Open the widget for the user immediately
    window.zE('webWidget', 'open');

    // Event trigger that fires when the user closes the Contact Us form: Make it so that the the help centre is available again
    zE('webWidget:on', 'close', () => {
    zE('webWidget', 'updateSettings', {
    webWidget: {
    helpCenter: {
    suppress: false,
    },
    },
    });
    });
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk