[Zendesk Support API] How to get the types of the fields properly?
Hello, guys!
I'd need to generate a form with fields dynamically and, according to their types, I need to choose a component (date picker, list, textbox etc.) for the user to input data.
The problem is: the "list fields" APIs doesn't seem to work as proposed... (https://developer.zendesk.com/rest_api/docs/support/ticket_fields#list-ticket-fields)First: it only provides a few fields. Not all searchable fields.Second: it does not provide the field type properly. When I'm listing ticket fields, the type is simply coming as the field name. For example: for "Subject" field, type is coming as "subject", for "Status" field, type is coming as "status".
For me, what would make much more sense would be the types you defined by Zendesk:- text (default when no "type" is specified)- textarea- checkbox- date- integer- dec