Hi
My code relies on the ability to resolve what mergefields exists on a form. If I create a field like this:
{ IF "{ MERGEFIELD field1 }" = "" "{ MERGEFIELD field2 }" "{ MERGEFIELD field3 }" }
And then perform this code on it:
string[] mergeFields = doc.MailMerge.GetFieldNames();
Will the string array contain the mergefields?
field1
field2
field3
Logically it should as it is mergefields on the template. But I haven’t been able to make it work. These mergefields do not appear anywhere else on the template, only in the IF field.
Regards,
!Rob