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:
@@ -833,7 +833,11 @@ export default {
|
||||
|
||||
// Apply type-specific defaults from blocks_types.json if available
|
||||
if (this.field.type in blocksTypes && blocksTypes[this.field.type]?.default_values) {
|
||||
Object.assign(this.field, blocksTypes[this.field.type].default_values)
|
||||
Object.keys(blocksTypes[this.field.type].default_values).forEach(key => {
|
||||
if (!_has(this.field, key)) {
|
||||
this.field[key] = blocksTypes[this.field.type].default_values[key]
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Apply additional defaults from defaultFieldValues if needed
|
||||
|
||||
Reference in New Issue
Block a user