I have a form where I want the class of an icon to toggle based on the value one of the inputs. The difficulty is that it is a multi-item form generated within a repeat. As such the names/ids are set dynamically. Normally, I would just set the class to toggle on input.value however I can’t see any way of using the $index in the toggle expression as it would effectively have to parse the $index and then parse again as a string with the value of $index.
Basically I want to click the button to toggle the success/secondary classes while also toggling between 1 (success) & 0 (secondary) in the corresponding value on that line of the repeat
Thanks for the help @Teodor
The field value is set originally by a SC but toggled by clicking the button. I want the class of the button to correspond to the value of the field - so essentially toggled but I don’t know the starting point of the field value (0 or 1).