Forum Discussion
CAE421
Apr 30, 2026Copper Contributor
Conditional field code
Hi, I'm trying to create some conditional code as seen in the screenshot below: But when I update the field it just shows a field code saying STYLEREF I need it to insert the paragraph numb...
- Apr 30, 2026
You must not type the curly braces! You must generate them using Ctrl+F9 (in my French version). Also, there is a non-breaking space in the error messages (in my version).
Charles_Kenyon
May 01, 2026Bronze Contributor
First, if you use Insert > Quick Parts > Field to insert the field, you will not get curly quotation marks. You can undo curly quotation marks using Ctrl+Z to undo autoformat.
Curly braces {} cannot be typed. You can insert them using Ctrl+F9.
Here are references on the conditional IF field:
The switch \* MERGEFORMAT is seldom helpful and can cause problems.