1 of 1 people found this helpful
If the text containing the merge field is only the parenthesis and the merge field, you can use Hide object when to hide the text block when the field is empty.
Alternatively, calculation field with this expression:
If ( IsEmpty ( yourfield ) ; "" ; "(" & yourfield & ")" )
could be used in place of yourfield as the merge field.
An additional option is to use a button bar. The label of button bars can be calculated so you avoid the need to define extra fields and manage object hiding. Obviously it would need to be styled appropriately.
All three suggestions have different compatibility implications
Calculation Feld: Compatible with any version
Object Hiding: Compatible with FM13+
Button Bar: Compatible with FM14+
One final thing, the Calculation Field approach has the added characteristic of allowing users to enter the field and select / copy text if required. You would need to change the field from a merge field to an Edit Box of course.
The calculation worked perfectly! Thank you so very much.