commerce – Using Simple Hierarchical or Client-side Hierarchical Select with conditional field

I am working on Drupal 9. I created a content type where I have to do a test to know the values obtained after a selection: As explained at the very bottom, if at the first level I select Printer and Network, I have to do a treatment appropriate, except that it doesn’t work at all.

How can I get the actual values selected for the test to pass?

If you have any other solution I am interested.

Using Simple Hierarchical or Client-side Hierarchical Select
with conditional field

  1. Create a taxonomy (Property Type) with 2 levels:
  • Printer
    Local
    Multifunction
    Network
  • Laptop
    Notebook
    Tablet
  • Backup
    Tape Backup
    Tape Library