How to have a conditional hidde style accord the user selection
I am building a web app that have a custom form with a lot of fields, these fields are dependent of another field with a choise list:
for example if you choose the card value, in the form you would be see only 3 fields, but if I choose the voucher value I would be see you see another two fields.
expected behavior :
I tried to customize the style attribute with a If sentence (some as $variables.tempType == 'CARD' ? visibility= hidden : visibility=visible) related with the field, but it does not work for me
I want to see only the related fields, I set a hidden visibility and I think is not my solution