Require parameter is missing or incorrect for barcode

While I configure DISPLAYBARCODE over a merged field the document fails to parse

"Error Message : “require parameter is missing or incorrect for barcode”

{DISPLAYBARCODE "{MERGEFIELD WOBarcode \*MERGEFORMAT }" s:CODE128-w:13\h 300\t\* MERGEFORMAT}

How to toggle DISPLAYBARCODE using IF condition

{IF {MERGEFIELD isBarcode}="false" {DISPLAYBARCODE "{MERGEFIELD WOBarcode \*MERGEFORMAT }" s:CODE128-w:13\h 300\t\* MERGEFORMAT} {MERGEFIELD WOBarcode \*MERGEFORMAT}}

WO_Picklist.docx (18.2 KB)

@akondewar Field code of DISPLAYBARCODE field is incorrect in your template. It should be the following:

{ DISPLAYBARCODE "{ MERGEFIELD LocNoBC }" CODE128-\h 300 \t }

also, you can use MERGEBARCODE field instead of MERGEFIELD nested into DISPLAYBARCODE:

{ MERGEBARCODE LocNoBC CODE128-\h 300 \t }

For example see the following simplified template and output:
in.docx (14.6 KB)
out.docx (10.3 KB)