Choice field dependent on multiple selections in List type field

Adim1
Tera Contributor

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

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

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.

Basheer
Mega Sage

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 hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

kiran kumar m1
Tera Contributor

Hi , is your issue got resolved?