I’m trying to do build simple reveal password functionality on my password reset screen.
Each password group (current / new / confirm) is Align to Parent and has:
an input with a custom state (e.g. pw_hidden yes/no)
a 40px group, with a child html svg icon (toggled between grey/green) - floating right
a reveal element (using reveal plugin).
Each passsword group also has two workflows to toggle the custom state (1x Only when custom state = no, 1x Only when custom state = yes)
I can get the reveal to work, however, when I try to implement the custom state toggling it breaks. When I add an ‘only when’ custom state is yes/no I can’t get it to even evaluate in the debugger…
You don’t need a custom state. The reveal element has a value already provided that can be used. Just reference the reveal element in a dynamic expression, then press more to see all values output by the reveal element…one of them should be something like ‘revealed’ which is a yes/no…use that value, not a custom state.
Or if you want a custom state, you need to make sure you reset the custom state value when clicking reveal each time.
Comes with the territory of learning…keep building things and eventually it will be a lot easier to make decisions on how to approach something.
Whenever you are working with plugins, always check if there are built in values, which there usually are. Those values really help with building a feature set around the plugin element.