Replies: 1 comment
-
Hey @benaunt I'm not able to reproduce this myself. Why are you using conditional UI in this case? You can just add validation to the form field directly? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I believe i have encountered a bug when applying conditional validation to an update form.
We have a requirement for a user to optionally fill in a mobile number. If the field has a value i want to apply a regex function to ensure its formatted correctly, if there is no value the field is not mandatory.
To do this I am using the condition menu on the field so that it applies a must match regex, if the field is not empty:
When doing this, and viewing an existing record. whenever i delete the data in the field it repopulates with the saved value as i click out of the field, so I cannot empty an existing record.
The form was created with a form block, then ejected but has no specific changes to how it loads data.
When I apply this conditional validation on the field in a create form, it works as expected.
See demo:
https://github.com/Budibase/budibase/assets/83434591/2e6c8505-3fed-4ac4-9f0e-ac1d9336e528
Beta Was this translation helpful? Give feedback.
All reactions