Interface method problem - setOptions

I am trying to set option for the dropdown - status field under ticket detail page.

I found these in some other threads but none of them works

client.interface.trigger(‘setOptions’, {
id: field,
value: [‘Open’, ‘Pending’]
});

client.interface.trigger(‘setOptions’, {
id: field,
value: [{‘Open’: {}}, {‘Pending’: {}}]
});

client.interface.trigger(‘setOptions’, {
id: field,
value: [{‘Open’: null}, {‘Pending’: null}]
});

Hi @Frantisek_Kolar,

Greetings!

Try this below code

 client.interface.trigger("setOptions", {
      id: "status",
      value: [ 2, 4,5]
 });

Hope this helps you!

Have a great day, bye-bye!

Thank you so much. . At the end I figured as status data type is integer.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.