Assuming I've two fields in my table
son1
son2
I'm trying to create two records in another table using jinja loop(which is happening) but the dynamic names are not out of my reach
"to": "bsp8bd9qp",
"data": [
{% for i in range(2) %}
{ "17": { "value" : "{{a.son~loop.index}}" }}
{% if loop.last == false %},{% endif %}
{% endfor %}
]
}
Below works but predictably gives me value for only son1 and not son2
{ "17": { "value" : "{{a.son1~loop.index}}" }}
------------------------------
Prashant Maheshwari
------------------------------
Question
Jinja Dynamic Variable Name using Loop Index
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.