• Checks if the input fields within a form or text area are empty or not visible. This function is useful for validating form data before submission.

    The following fields are checked:

    • Input fields and text areas within the specified HTML element.
    • Fields that are not hidden, readonly, disabled, buttons, or submit buttons.

    Parameters

    • element: HTMLElement

      The HTML element (form or text area) to search for input fields.

    Returns boolean

    Returns true if all input fields are empty or not visible, otherwise returns false.

    Example

    var formToCheck = ix.api.dom.getHtml("<FORM-GUID>");
    var empty = ix.api.confirm.fieldsAreEmpty(formToCheck);

    console.log(empty); // true or false