@register.tag(name="get_form_id_for_key")
def get_field_id_from_form_by_name(parser, token):
    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)
Returns Form #id for Secondary Key field provided.
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/mdtui/templatetags/index_keys.py/get_field_id_from_form_by_name