Changing Custom State on Button based on other Input


I want to make payment for a web app item optional. I am trying for the button to display $0 when the payment Input is empty and to display $X when the payment Input is displayed with a number.

I keep getting a “no” for the custom state.

Am I approaching this wrong? Let me know if you need more info!

2020-03-09_14h59_28 2020-03-09_14h59_36 2020-03-09_14h59_49 2020-03-09_15h00_01

Hi there, @sebastian.murillo… if I understand your post correctly, you want this, right?



If that’s correct, a simple condition on the button is all you need. You can have the default label for the button be the empty state…

… and then this condition applies when the payment field is not empty…

Is that what you’re trying to accomplish?


1 Like

That is exactly right! Thanks a lot , Mike. I think it was easier than I thought :sweat_smile:.

1 Like

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