def check_form_class(field):
    """Return the form element type for comparison in templates.

    Example:
        {% if field|checkFormClass == 'SelectMultiple' %}

    You can {{ field|checkFormClass }} if you want to see the
    various values that your form fields are registered as
    """
    return field.field.widget.__class__.__name__