Help needed... button selection to disable multiple inputs

Hi bubble experts,

I would like to seek your help in resolving this issue I have with my site. Would it be possible to have multiple inputs be disabled with a button? For example, I would like to have two buttons, when one button is pressed it enables inputs in group 1 but disables inputs within group 2, vice versa.

If this is possible, would it be possible to have a selection of either displaying group 1 or 2 based on which is the one that had the input? Sorry if this sounds complicated, I’m still fairly new to bubble and have no idea how to accomplish this. Would really appreciate it if anyone could advise me on this. Thanks!

Hey @chaochaobae

Welcome to Bubble :slight_smile: I think what you’re going for can be accomplished using custom states and conditionals. You can set conditions on elements that define when they should be visible. You can also set custom states on elements – so you could do something like, when element A’s custom state is X, element B is visible. It can be a little confusing at first, but you’ll get the hang of it pretty quick. Check out Bubble’s own resources and lessons on custom states to get started.

Hi Jacob, thanks for the help! I watched some tutorials on custom states and tried it out and it seems to work. I have another question, would it then be possible to display the inputs on a different page? For instance, button 1 is linked to group A while button 2 is linked to group B, I would like to have only group A’s inputs reflected on another page if button 1 was selected previously. Vice versa, if button 2 was selected earlier, only group B’s inputs will be reflected and not group A’s. Can this be done? and what would the workflow be like? Thanks once again for the help.

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