@register.tag(name="get_form_id_for_key")
def get_field_id_from_form_by_name(parser, token):
    """
    Returns Form #id for Secondary Key field provided.

    Uses Indexes form to retrieve dependency.
    """
    try:
        # splitting args provided
        tag_name, form, key_item = token.split_contents()
    except ValueError:
        raise template.TemplateSyntaxError("%r tag requires exactly 2 arguments" % token.contents.split()[0])
    return ProvideIDForSecKey(form, key_item)
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/mdtui/templatetags/index_keys.py/get_field_id_from_form_by_name/original