1👍
✅
The OP wrote:
solved with a simple_tag:
@register.simple_tag def keyval(fdata, parameter, stindex, ndindex=None): if(ndindex is None): return fdata[stindex][parameter] return fdata[stindex][ndindex][parameter]
and I call it in template with:
{% keyval form_data "FormField1" 0 %}
Source:stackexchange.com