Skip to content

empty_rows is required #9

@Altreus

Description

@Altreus

When displaying a record that has_many related, you can use the Repeatable type to draw one row for each related record, and empty_rows: 1 to add a blank one at the end so the user can create more.

There does not appear to be a way to specify that this empty row should only be included in validation if it is populated at all, i.e. to allow the user to save the form without wanting to add a new record.

Essentially this means we have to have a separate URL to show the same form with or without an extra record, which doesn't make sense, because edit mode is edit mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions