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)
- tagger (custom dropdown & multi-select dropdown)
If the API does not provide me all the searchable fields and their types, I will have to map all of them manually, which will make my application too rigid.
Do you know how could I get this kind of information dynamically?
Thanks in advance.