Edit options in Drop down for "TYPE"
RespondidaI would like to edit the drop down options for the field "TYPE".
How do I go about doing that?
-
Hi Tony Mancini,
First, I assume you are using ZAF in your application and initialised the client. You can query the optionvalues of the type field:
client.get('ticketFields:type.optionValues')
It should return all the available option objects. Find the desired option in the array and store its index. You can then change its label by replacing 0 with that index in the set statement:
client.set('ticketFields:type.optionValues.0.label', value)
Note that these are only UI changes. It is not possible to change the values of a system field.
Iniciar sesión para dejar un comentario.
1 Comentarios