Hi,
I’ve the following structure
field 1
field 2
field 3
field 4
when the user enter “100” in field 1 the value of field 2,3 or 4 can be 0-100 (so not more then 100) for each of them.
I tried it with a simple condition - but I’m stuck
Hi,
I’ve the following structure
field 1
field 2
field 3
field 4
when the user enter “100” in field 1 the value of field 2,3 or 4 can be 0-100 (so not more then 100) for each of them.
I tried it with a simple condition - but I’m stuck
Hello,
If I understand the challenge correctly, here’s how you might approach it:
Here’s an example UI:
If this is what you’re going for here’s how its set up.
Input 1 doesn’t have any validation:
Inputs 2-4 have:
– A max value = the value of input 1
– A min value = 0
This will mark these fields as not being valid if they aren’t. By default there is conditional formatting on inputs to add the red border if an input’s value is not valid. If you are using a custom input styling you might need to add this.
Bubble will throw errors if this is attached to workflows like saving to the database, but another nice thing to add for user-experience might be more descriptive errors below the fields. Here’s how those are set up:
Appearance:
– The text value:
Conditional to show them:
Hope this helps, best of luck with your project!
Adam
This topic was automatically closed after 70 days. New replies are no longer allowed.