setOptions issue in contact and company placeholders

Hello all,

Greetings!

I’m currently facing issues when trying to update dropdown field options for Contact fields and Company fields using client.interface.trigger("setOptions") (app using background placeholders).

Issue 1: Contact Field Dropdown - setOptions Not Supported When I try to set options for a contact field dropdown, I get this error (screenshot also attached):
message: ‘The interface action “setOptions” is not supported for the “type” element’}So it looks like the type field on the contact page does not support the setOptions action — but I couldn’t find clear documentation on which fields are supported and for which placehoders.

Issue 2: Company Field Dropdown - Options Not UpdatingFor company dropdown fields, I actually get a success message when calling setOptions, but the dropdown options do not update in the UI.

Here is my setOptionscode:

client.interface
.trigger("setOptions", {
id: "type",
value: ["Second Choice"],
})
.then(() => {
console.log(`Options updated successfully.`);
})
.catch((err) =>
console.error("Error While Updating the dropdown Field", err)
);

Note: This happens for all dropdown fields!

image (95)

Thank you.

1 Like

@Freddy your thoughts on this?

@Bene_Immanuel

Currently I’m also facing the same problem,

Let me know if you got any solution for this

Thank you.

Hi @Bellarmine_Joshi_V,

Greetings!

No!

Application is still on hold due to this.

Can anyone for the community help us on this?

Thank you.

1 Like

Hi @Bene_Immanuel ,

Greetings!

As stated in the documentation, only certain element values are supported.
https://developers.freshworks.com/docs/app-sdk/v2.3/freshdesk/front-end-apps/interface-methods/

Therefore, we will not be able to use setOptions for the contact and company dropdown fields.

Thank you.