You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a Word template for lawyers, so the whole Word document consists of nested lists with each list representing legal clauses ex: 1.1, 1.2, 1.3, 2.1, 2.1.1, 2.1.2, etc. Inside each clause I could have jinja conditions ex: "2.4 Include a {% if deposit %} deposit {% endif %}". I also use Word fields to refer to other clauses ex: "3.1 As stated in clause 2.4 we should ..." . I am using Word fields to refer to other clauses, because sometimes you might not have one clause ex: 2.3, which means that clause 2.4 becomes 2.3, so you want to reference clauses dynamically
Problem:
If I reference a clause using Word Fields that contains conditionals within it (ex: 1.1 Include a {% if deposit %} deposit {% endif %}), then it's Field reference would change, which would make the place I am referencing this clause have an "Error! Reference source not found".
So, my template would look like this:
2.4 Include a {% if deposit %} deposit {% endif %} - Field reference: AA1
3.1 As stated in clause 2.4 [FIeld reference underneath: AA1] we should
The generated document would have this:
2.4 Include a {% if deposit %} deposit {% endif %} - Field reference: AA2
3.1 As stated in clause "Error! Reference source not found" [FIeld reference underneath: AA1] we should
Please help me fix this error.
I do not know what is the best solution here, but possible ones might include: stopping the Word Fields from updating when the conditional statements change the value of the clause or update not only the field reference, but also any places where this field is cited with the new reference.
The text was updated successfully, but these errors were encountered:
I am creating a Word template for lawyers, so the whole Word document consists of nested lists with each list representing legal clauses ex: 1.1, 1.2, 1.3, 2.1, 2.1.1, 2.1.2, etc. Inside each clause I could have jinja conditions ex: "2.4 Include a {% if deposit %} deposit {% endif %}". I also use Word fields to refer to other clauses ex: "3.1 As stated in clause 2.4 we should ..." . I am using Word fields to refer to other clauses, because sometimes you might not have one clause ex: 2.3, which means that clause 2.4 becomes 2.3, so you want to reference clauses dynamically
Problem:
If I reference a clause using Word Fields that contains conditionals within it (ex: 1.1 Include a {% if deposit %} deposit {% endif %}), then it's Field reference would change, which would make the place I am referencing this clause have an "Error! Reference source not found".
So, my template would look like this:
2.4 Include a {% if deposit %} deposit {% endif %} - Field reference: AA1
3.1 As stated in clause 2.4 [FIeld reference underneath: AA1] we should
The generated document would have this:
2.4 Include a {% if deposit %} deposit {% endif %} - Field reference: AA2
3.1 As stated in clause "Error! Reference source not found" [FIeld reference underneath: AA1] we should
Please help me fix this error.
I do not know what is the best solution here, but possible ones might include: stopping the Word Fields from updating when the conditional statements change the value of the clause or update not only the field reference, but also any places where this field is cited with the new reference.
The text was updated successfully, but these errors were encountered: