Hello,
I am using the below script to set value of a multiselect field based on a value of single select field, but this is not working.
Country Relevance is a multiselect field.
Retrofit Type is a single select field.
const retrotype = getFieldById("customfield_10471");
const countryrel = getFieldById("customfield_10091");
logger.info('Value: ' + retrotype.getValue().value);
if (retrotype.getValue().value == 'PQ Testing') {
countryrel.setValue('US');
}
I need to set value of a multiselect field Country Relevance = US if Single Select field Retrofit Type = PQ testing