I’m struggling to find a solution for a complicated topic, hope some of you might know the answer!
I have a lot of fields on my pages (let say 50), but I’m only showing some of them based on the input the user gives and the conditional logic that is attached to it. When I hit save, I would like to check if the fields that are VISIBLE and marked as “this input should not be empty” are filled in.
Has anyone figured out how to properly do this?
As I have many fields, writing out every possible combination with conditionals is not an option…
Hey @deborah2 I think I know what you mean. I wouldn’t want to do all of those conditions either. This would be the simplest way to do it. Would something like this be enough?
If you check the option “This input should not be empty”, the field will become required, and the button that triggers the workflow will be disabled if that input is included in a Create or Make changes to a thing action. However, if the input is invisible, the validation will be ignored. So, if you already have a condition that hides the input, you don’t need to worry — Bubble will handle it for you.
If this isn’t exactly what you were asking, please provide a bit more detail so I can better assist you.
Hi @ruiz86 and @J805 , thank you both for helping out!
I actually did not know Bubble could do this. I’m working with autobinding so I didn’t use that particular step to update a thing. It’s also working with my own buttons created as reusable elements, perfect!
Hi @ruiz86, while I’m implementing this setup, I came across one more situation: repeating groups.
Within my repeating groups, I have dropdowns and fields to add to the thing inside the repeating group. I would like to check if all the fields of that specific repeating group are filled in, but the “make changes to a list of things” doesn’t trigger this bubble functionality.
Have you’ve encountered this situation before and know how to tackle this?
Yes of course. So in the first screenshot, I’m just checking to see if all the fields are filled, by adding the step “make changes to a thing” under the green button.
But in the second screenshot, I’ve created a repeating group where the user adds data to multiple things. But here, I can’t access the specific fields inside a repeating group to make changes to a thing. So I’m trying to find a solution to check if the fields are filled in inside a repeating group.