Edit options in Drop down for "TYPE"

Answered

1 Comments

  • Ahmed Zaid
    Community Moderator

    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.

    0

Please sign in to leave a comment.

Powered by Zendesk