Changing icon on matrix wdget based on on/off

This doesn’t work with a basic matrix because the formula is resolved at the matrix’ scope, not at each subwiget’s own scope (@{this} doesn’t resolve to the button’s value).

To do that you need to create a template widget that behaves as you describe and a matrix of clones widgets that duplicate it . Here is a minimal session showing this : clone-matrix.json (2.0 KB)

Notes:

  • the conditional label code is in the template toggle
  • the $ is used to increment the clone widgets’ ids
  • mind the “props” item in the matrix’ “props” property
1 Like