Can I hide the department field on the pre-chat form?

Have more questions? Submit a request

6 Comments

  • Kristin Z.
    Comment actions Permalink

    Hi,

    Is it possible to find the ID of a department so that we dont need to use the string of the name in our code? Sometimes we change the department name but want to ensure we dont need to update the code every time this happens.

    I went to the chat dashboard and went to "Departments" and only saw the names of departments, but no IDs.

    Any help would be great, as every article I click on seems to lead me to another article and another... :)

    - Kristin

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hi Kristin,

    If you have a standalone Chat account you should be able to get the department ID by first logging into your dashboard then navigating to zopim.com/api/v2/departments.

    However, if you have an integrated Chat account with Support things get a little trickier here. You would need to use the following instructions to generate an OAuth token for your integrated Chat account so you can pull this information from the API: Chat API tutorial: Generating an OAuth token (integrated Chat accounts)

    Hope this information helps!

    0
  • Kristin Z.
    Comment actions Permalink

    Brett,

    We are already using the API and we found what we were looking for with that, thank you for pointing me in the right direction! :)

    0
  • Brett - Community Manager
    Comment actions Permalink

    Happy to help Kristin :)

    0
  • Kiva Bostrom
    Comment actions Permalink

    Is it possible to remove a field? In our case, we would like to remove the phone number from one of our websites chat, but the form itself is a shared form, so we want to keep the field in place. If we cant remove it, can we hide it? Our attempts at using common jQuery or JavaScript methods are failing. Thanks!

    0
  • Erika Camille Sundian
    Comment actions Permalink

    Hello Kiva Bostrom,

    I consulted our Product Engineers and was advised that hiding the name and email or phone fields is only possible by disabling the entire pre-chat form. It is not possible to selectively hide just those two fields with Chat admin settings, the Javascript API, nor with even my backend tools.
     
    We can't find any workaround to suggest at the moment so I'll also leave this post open in case other users have a solutions for you :)
    0

Please sign in to leave a comment.

Powered by Zendesk