Using Acrobat Pro DC with FusionPro version 10.1.11
I need to join the State and zip with a different "join" of just a space.
The following code works except it joins STATE and ZIP CODE with ", "
Is there a way to differentiate the joins.
var items = [ Field("STREET"), Field("CITY"), Field("STATE"), Field("ZIP CODE") ];
items = items.filter(String); // remove empty items
return [ items.slice(0, 4).join(", "), items.slice(4).join(" ") ].filter(String).join("<br>\n");