Choice field dependent on multiple selections in List type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 12:38 PM
Hi all,
First of all, is it possible to configure a dependency between a list type field and a choice field? If it's possible, I have a list type field with say, 5 choices (a, b, c, d, e). I also have a choice field (with choices x, y, z) that is dependent on a combination of choices in the list field for a max of 2 choices.
- if any of the 2 choices is a or b in the list field, then x should auto populate in the choice field.
- if any of the 2 choices is c in the list field, then y should auto populate in the choice field.
- any other combination should auto populate z.
I'd appreciate any help I can get with this.
Best,
Adim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 01:26 PM - edited 02-21-2023 01:29 PM
Not a dependency, per se, but you just need an onChange Client Script when the list field changes. The script will evaluate if the value of the field (a comma-separated list of sys_ids for records on the referenced table) contains each of your scenarios, then sets the value of the choice field accordingly. You might try first with UI Policies containing a script to populate the choice field. This approach may make it easier to evaluate the list field using the GUI condition builder rather than scripting sys_ids.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 05:43 PM
Hi @Adim1 ,
Direct dependency is not possible as per my knowledge. You need to use an OnChange client script to achieve this.
Let me know if you need help in coding over there.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:23 AM
Hi , is your issue got resolved?