https://github.com/robinellgren/zendesk-hide-fields
Hide Zendesk fields in Web widget
https://github.com/robinellgren/zendesk-hide-fields
zendesk zendesk-web-widget
Last synced: 10 months ago
JSON representation
Hide Zendesk fields in Web widget
- Host: GitHub
- URL: https://github.com/robinellgren/zendesk-hide-fields
- Owner: robinellgren
- Created: 2023-06-20T17:00:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T11:39:53.000Z (over 2 years ago)
- Last Synced: 2023-08-11T20:30:47.260Z (over 2 years ago)
- Topics: zendesk, zendesk-web-widget
- Language: HTML
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zendesk Hide Fields
The [Zendesk Classic Web Widget](https://developer.zendesk.com/api-reference/widget/introduction/) does not provide a way to hide certain fields in the forms. These fields can be seen [here](https://support.zendesk.com/hc/en-us/articles/4408886739098-About-ticket-fields) but for example `Subject` and `Description`.
## Motivation
One of the most asked questions on the Zendesk Support Center is [how to disable these](https://support.zendesk.com/hc/en-us/articles/4408882841498-How-can-I-disable-the-subject-and-description-fields-from-the-request-form-).
The proposed way is not developer friendly. Instead, this repository proposes to hide the HTML of these fields after the Widget has loaded.
## How it works
Checks if the Web Widget has loaded and if so, removes unwanted fields.
## How to use
1. Copy the code from inside `script.html`
2. Adjust your HTML so that the copied code is included anywhere within the `body` tag.
Hope that your Zendesk integration goes smooth 🤞
## Mentions
This solution was inspired by [Zendesk-Customizations](https://github.com/Ajhad1/Zendesk-Customizations/tree/main)