When I put a variable into a column with a fori loop the value is not showing on the preview in a template. In a document it does show in the preview. The variable is in a if statement and when I remove the if statement then it shows again. Does anyone knows what the problem is?
this does work on the preview, so it is not a problem with the value {% if forloop.first %} {% $0+input titeldetail.valuestart as:currency placeholder:'waarde' default:detail.custom.value %} {% else %} {{ sub | currency }} {% endif %}
Unfortunately we cannot say this based on the code you shared. Can you share some more code (like the complete fori statement)? How are variables mycalc and sub defined?
For now I would think that mycalc does not equal true and therefore it does not show sub, but we need more code to be sure.
I found the problem, I’ve assigned a boolean to mycalc immediately after the boolean input, but this stands between {{ic-endic}} statement because this doesn’t to be show in the preview. So I replaced the place where I assign the boolean to mycalc after the {{endic}} and now it works fine.
Already thanks for your help.