I have a custom checkbox field in Zendesk ticket form that I need to set to ‘True’ on ticket creation that I will later use in some triggers/automation. I do not need the customer to see this field when submitting a ticket - i just want it to be checked by way of the Web widget submitting a ticket. I cannot get this functionality to work and have tried everything -
// Method 1: webWidget:set with contactForm
zE('webWidget:set', 'contactForm', {
'customField:1234567891011': true
});
// Method 2: webWidget set with contactForm
zE('webWidget', 'set', 'contactForm', {
'customField:1234567891011': true
});
// Method 3: Event listener for widget open
zE('webWidget', 'on', 'open', function() {
// Set custom field logic
});
Error Messages Received:
- Method webWidget:set.contactForm does not exist
- Method webWidget.set does not exist
- Method webWidget.on does not exist
What is the correct API syntax for setting custom field values in the Classic Web Widget?
