Set value for reference field as a choice list

SamuelTse
Tera Guru

HI,

I have a reference field and I have it set up as a choice list (drop down list).

find_real_file.png

I am trying to set the value of this field via client script. I can set the value of the reference field. However, the display value is not selecting.

I have used to set the value for the reference field just fine so it is not a problem of the values

setValue(String fieldName, String value, String displayValue)

However, once i changed it to be a choice list, by selecting "Dropdown with -- None -- " in the dictionary, the script no longer works.

Any idea how to set the value of a reference field when it is displayed in a choice list format?

Thanks,

Sam

5 REPLIES 5

Unfortunately, I never found the answer and haven't looked into it since. We just used the normal reference field instead. 


Sam