I can't get the delete checkbox to function in my has_many repeatable
block. It has never worked in any of the test websites I have created.
Here is the code I use, though I have removed the extraneous bits.
# ** REPEAT APPOINTMENTS --
- type: Repeatable
nested_name: appointments
counter_name: thecount
model_config:
new_empty_row_multi: appointment_date
delete_if_true: goAway
elements:
- type: Hidden
name: appointment_id
# APPOINTMENT DATE --
- type: Text
name: appointment_date
label: Appointment Date
model_config:
delete_if_empty: 1
# DELETE APPOINTMENT --
- type: Checkbox
name: goAway
label: Delete
# THECOUNT --
- type: Hidden
name: thecount
My has_many works properly except for this one thing. The
"delete_if_empty: 1" works as it is supposed to.
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu