close_filter_form

close_filter_form()

domain: client

language: javascript

class Item class

Description

Use the close_filter_form method to close the item’s filter form.

The close_filter_form method triggers the on_filter_form_close_query event handler of the item, if defined:

  • If the handler returns true, the form is destroyed, the item’s filter_form attribute is set to undefined, and the method exits.

  • If the handler returns false, the operation is aborted and the method exits.

If the handler returns undefined, the method triggers the on_filter_form_close_query of the item’s parent group, if defined:

  • If the handler returns true, the form is destroyed, the item’s filter_form attribute is set to undefined, and the method exits.

  • If the handler returns false, the operation is aborted and the method exits.

If the group handler returns undefined, the method triggers the on_filter_form_close_query of the task:

  • If the handler returns true, the form is destroyed, the item’s filter_form attribute is set to undefined, and the method exits.

  • If the handler returns false, the operation is aborted and the method exits.

If no event handler is defined, or none of the handlers return false, the form is destroyed and the item’s filter_form attribute is set to undefined.

See also

Forms

create_filter_form

filter_form