How to add options to existing field via client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 07:58 AM
I'm wanting to add a "Not Applicable" as a dropdown option in two fields within a catalogue item. The two fields are:
The options for the two fields are specified in the following screenshots:
I've tried adding the 'Not Applicable' option in those two fields by using the below client script:
However, when I use this, it doesn't display the 'Not Applicable' option in both fields. If somebody could explain what I need to do to get that option field showing in both fields, that would be great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 11:48 AM
AddOption works only for select box variables or choice type fields
Reference fields display records from a table, so your table(s) would need to have a record with the name 'Not Applicable' to be captured by a qualifier and shown with the other records from the table.