ASAP API - Open "Add Ticket" in ASAP for jwt logged-in user.
through the following code:
create(prefill?: { subject?: string; description?: string; }): void {
window.ZohoHCAsapSettings.ticketsSettings = {
preFillFields: {
subject: {
defaultValue: prefill.subject || "",
},
description: {
defaultValue: prefill.description || "",
}
}
}
window.ZohoHCAsapReady(() => window.ZohoHCAsap.Actions.UpdateSettings(window.ZohoHCAsapSettings));
window.ZohoHCAsapReady(() => window.ZohoHCAsap.Action("open", { tab: ZohoAsapTab.Tickets }))
}
I can prefill the add ticket form, but for jwt logged-in user, they still have to click on add ticket button to go ahead to the add ticket form.
Q:How to open the add ticket form in code for jwt logged-in user?