Hi, I am trying to use set options on a custom field as per the documentation here:
These are the options that I have in the custom field called Product (it’s of type: nested_field).
To goal is to only have “Onboarding” as an option in the dropdown.
This is the code:
client.interface
.trigger("setOptions", {
id: "cf_product",
value: ["Onboarding"],
})
.then(function (data) {
// data - success message
console.log(data);
})
.catch(function (error) {
// error - error object
console.log(error);
});
this is the error that is getting logged:
What. might be the issue here?