Bind 2 lists together

Tags: #<Tag:0x00007f491892bdb0>

Hi !
I am looking for a way to, given 2 lists, when selecting a value from list A, only see a subset of the list B values.
For instance List A = {Finance, Sales, HR} List B = {accounting, controlling, manage customers, hire staff, evaluate staff performance}
If, from a form, I select “HR” from field containing the list A , I would like to see in the next field a drop down list only “hire staff” and “evaluate staff performance”.
Could you please indicate me how to do it?
Many thanks

This corresponds to the “linked lists” mechanism.

You have an example in the demo : object DemoContact / fields demoCtcTypeand demoCtcSubType which have such linked lists.