rasteiner/k3-whenquery

Working inside structure fields?

rantonse opened this issue · 1 comments

(Thanks for a great plugin! Have been waiting for something like this!)

I cannot get queries to work for fields within structure fields. I have a field of type: structure, and inside of this I have fields that I want to hide and show depending on each other.

Example:

fields:
  items:
    label: Items
    type: structure
    
    fields:
      foosables:
        type: select
        label: Foosables
        options:
          gerryconas: Gerryconas
          peterwands: Peterwands
          perlskippies: Perl Skippies

      barsters:
        type: range
        label: Barsters

      warning:
        type: info
        label: Woofling warning
        text: Having more than 30 Barsters is **not recommended** while wooffling Gerryconas.
        theme: negative
        whenQuery: foosables = 'gerryconas' && barsters > 30  

Hello :)

This should be fixed in the latest version. That is 0.2.0 :)