Development

This commit is contained in:
Matthew Grotke 2026-06-05 12:34:38 -04:00
parent d55db32667
commit 4071d2bcbb
2 changed files with 23 additions and 2 deletions

View file

@ -455,6 +455,11 @@ def collect_form_originals(items, tokens):
value = apply_tokens(item.get('value', ''), tokens)
if input_type == 'checkbox':
result[name] = '1' if value.lower() in ('true', '1', 'yes') else '0'
elif input_type == 'checkbox_group':
try:
result[name] = json.loads(value) if value else []
except Exception:
result[name] = []
elif input_type == 'select' and not value:
try:
opts = json.loads(apply_tokens(item.get('options', '[]'), tokens))