Using custom ticket fields and ticket forms with the Web Widget (Classic)



image avatar

Aimee Spanier

Zendesk Documentation Team

Edited May 07, 2025


1

34

38 comments

You can custom a limited number/selection of forms by adding the snippet for the widget to a different brand. 

We have 10 forms total. Brand A has 8 forms associated with it. We only want to focus on 3 of them to show up in the Help Center widget. I created a Brand B that we don't actually use, associated those 3 forms with it, and used the snippet for the Brand B widget to embed it on Help Center A.

You'd probably want to have a trigger in place to change the brand back to A, and will need assignment triggers updated if you're using brand as a condition, but this allows you to have the subset of forms you're customizing for.

Nara

0


No problem :)

0


Okay Thanks for the Help Christopher Kennedy

0


The widget doesn't provide the same degree of UI customization that is possible in Help Center.  Depending on your use case, it may be a helpful strategy to prioritize configuring the customer-facing ticket field title to what is expected within the widget.  Then if you expect it to be different within Help Center, you have the ability to change it via Javascript.
 
 

0


Christopher Kennedy Thanks for the update.

Any reason why we can't change custom field title/label for end users using Web Widget API Script.

0


Hi Usman,
 
It's not possible in a script using the Web Widget APIs.  The widget will display the title of the field from admin settings.

0


Christopher Kennedy Thanks for reply.

Can I change the field's title/label using web widget script? like we do change hint/description for any field.

0


Hi Usman,
 
The hint property allows you to specify the field's description, but it won't change the field's title/label within the widget.  You may set the Title shown to customers value in the ticket field's settings to display your desired field title to end-users.

0


Thank you Dave Dyson

I can change the custom field label for help center ticket form using this line of code: $('label[for=request_custom_fields_30057292]').html("Rename label");

But i want to change the custom field label for web widget.
here is the code i use to change the description and custom field hint

<script type="text/javascript"> window.zESettings = {
    webWidget: {
      contactForm: {
       ticketForms: [
          {
            id: 4562971,
            subject: false,
            fields: [
                { id: 'description', hint: { '*': 'Description here' } },
                  { id: 63191711, hint: { '*': 'ID# xxx' } }
              ]                         
          },
          {
            id: 278875,
            subject: false,
             fields: [
                { id: 'description', hint: { '*': 'Description here' } },
                  { id: 63191711, hint: { '*': 'ID# yyy' } }
              ]
          }
        ]
      }
    }
  } </script>


For web widget how can i change the custom field label using above script.

0


Hi Usman!
 
No, you can't change a field label that way, but you can use JavaScript to change the label in a ticket field -- here's an example that changes the labels of the Subject and Description fields, but you can do the same for a custom field by substituting for=request_custom_fields_{id}_label with the id for that custom field (no brackets),  in place of for=request_subject: Rename the "Subject" and "Description" labels on the Request form

0


Sign in to leave a comment.

Account details

Sign in to see details

Sign in to see your account details at a glance

Sign in