Preview before posting but only when inputs are full

Hello Bubblers,

I have some input fields and a button that that allows users to preview what they have inputted, however I only want the preview button to be clickable if the inputs have values in them. If they are left empty then they have a warning on which inputs to fill out.

How can I achieve this?

Thank you

Hi there, @toshipanda101… one way you can do what you described is to make the button not clickable by default, and add a condition to the button that makes it clickable when all of the inputs are not empty.

If you want something more along the lines of what you said about having a warning about which inputs to fill out, you could use the built-in functionality where you check the This input should not be empty box for each of the inputs, and the app will highlight any empty inputs when the user clicks the preview button.

Hope this helps.

Best…
Mike

1 Like

Thank you very much for all the help Mike!

1 Like

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