Skip to content

Add Form.Remove(formItem) method #3511

Open
@brucealthompson

Description

@brucealthompson

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

I am trying to create model forms in which individual FormItems are added / deleted based on user input to other FormItems. I can to add FormItems using Form.Append(). The Form widget does not include a method for Form.Item.Delete(index) so I cannot remove FormItems from an existing form. There is no Form.Index.Hide(index) so I cannot hide form items either.

Is it possible to construct a solution with the existing API?

I have to rebuild the Form if I want to remove a FormItem from an existing form.

Describe the solution you'd like to see.

Implement the method Form.Remove(FormItem) which will remove a FormItem object from an existing form

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions