Improve form property logic validation for checkbox conditions
- Update FormPropertyLogicRule to handle operators without values - Add support for checkbox conditions like 'is_checked' and 'is_not_checked' - Refactor logic validation in both API and client-side implementations - Remove unnecessary console.log statements - Update error modal text for better user experience
This commit is contained in:
@@ -236,7 +236,6 @@ export default {
|
||||
saveForm() {
|
||||
// Apply defaults to the form
|
||||
const defaultedData = setFormDefaults(this.form.data())
|
||||
console.log('defaultedData', defaultedData)
|
||||
this.form.fill(defaultedData)
|
||||
|
||||
this.form.properties = validatePropertiesLogic(this.form.properties)
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
@close="$emit('close')"
|
||||
>
|
||||
<div class="-mx-5">
|
||||
<h2 class="text-red-600 text-2xl font-bold mb-4 px-4">
|
||||
Error saving your form
|
||||
<h2 class="text-red-600 text-2xl font-medium mb-4 px-4">
|
||||
We couldn't save your form
|
||||
</h2>
|
||||
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user