最近搜索


没有最近搜索

How do we can modify "subject" based on custom filed value (enter by user ) in new request form

已回答


已于 2022年7月28日 发布

Hi Everyone. 
In my request form, I have custom field orderno. 

I want to concatenate the orderno with subject (that will be Ticket's Title).
Currently I have hide the subject field with jquery script and set some default value.

 $('.form-field.string.required.request_subject').hide(); // Hide subject 
 $('#request_subject').val('Insurance new request no:'); // Autofill subject


What I want to achieve is when user submit the request form the order no which is enter by user should be included in subject.

e.g.

orderno= 12124

subject should be like "Insurance new request no:12124"

Is this possible ? or what can be best alternate for this


1

3

3 条评论

Hi richestsoft dev! This is possible by updating the Subject using the Zendesk API and a webhook trigger that fires on ticket creation. Please see here and here for more information!

1


image avatar

Lou

The Product Manager Whisperer - 2022Community Moderator

If I understand your question, you can use triggers and webhooks to do that. The trigger will send JSON to the web hook which will update the subject.

For example:

The trigger condition would be {{custom field}} is present and any other conditions you would need.

The action would be to notify the webhook.

The JSON would be similar to {"ticket": {"subject": "{{ticket.title}} [{{ticket.ticket_field_yourfieldID}}]"}}

I also add a tag and check for the tag to ensure it only fires once.

The webhook would have an endpoint of https://yourdomain.zendesk.com/api/v2/tickets/{{ticket.id}}.json

Request method PUT

Request format JSON

We use this method in several situations and it works very well for us.

1


Thank you so much for the response.
Is that also possible, can we redirect to some URL after form submission?

0


请先登录再写评论。

找不到所需的内容?

新建帖子