đŧ Ticket attributes
Tags: JavaScript, React, Vue, Angular, Website, Web App
Set ticket attributesâ
Ticket attributes can be set with the method below. If the user also provides data for an attribute (for example description
), the user input will be prioritized.
Gleap.setTicketAttribute("notes", "This is a test value.");
First param: attribute key
Second param: value (string, boolean, string array or number are supported)
Ticket attribute data will not be pre-filled in forms.
Finding the ticket attribute keysâ
You can find or create all available ticket attributes for each ticket type in Settings > Data attributes.
Unset ticket attributesâ
Ticket attributes can be unset with the method below.
Gleap.unsetTicketAttribute(withKey: "notes")
Clear all ticket attributesâ
All ticket attributes can be cleared with the method below.
Gleap.clearTicketAttributes()