[html-formfu] Delete option in repeatable block does not work

Ascii King tech at swattermatter.com
Wed Jan 21 16:52:34 GMT 2009


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.



More information about the HTML-FormFu mailing list