Problem with barcode code128

Hello,
I have to make barcode code128 with this value: “ABCD13020302010203030”
I want to force code128B for: “ABCD1”, after this change to C.

When I use Auto mode code set B is used for ABCD and for numbers C.

It is possible to force coding manually and change code set in middle?

The only way I could think to do this would be to split the value into two fields in the Datamapper. The barcode object itself points to a field, so to do this simply you’d want to run some javascript during the datamapping to create two fields out of the value. Then use two barcodes that are placed side-by-side on your design form.

If your data is always fixed length, you could do this very simply with the substring method in JS. More on that here:

Something similar to ‘ABCD13020302010203030’.substring(0,4); would return the first 4 characters. Likewise ‘ABCD13020302010203030’.substring(4,21); would give you everything else. You’ll have to adapt this to your particular data model, of course.

If the length is variable or if you’re capturing different lengths inside the value, you’ll just have to do a little more checking to determine the length of the initial string and your starting points.