Help me debug this issue - workflow not executing with 'Only when..."

I’m trying to do build simple reveal password functionality on my password reset screen.

Screen Shot 2023-06-09 at 2.38.07 pm

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…

This workflow then has 2 steps:

  1. Toggle the reveal
    Screen Shot 2023-06-09 at 2.43.12 pm

  2. Set custom state
    Screen Shot 2023-06-09 at 2.43.18 pm

The input structure looks like this:
Screen Shot 2023-06-09 at 2.59.32 pm

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.

:expressionless: :expressionless: :expressionless: :expressionless: :expressionless:

Thanks so much. The amount of time I spend on trivial stuff like this is absurd :no_mouth:

1 Like

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.

This topic was automatically closed after 70 days. New replies are no longer allowed.