Is JsBarcode supported in v13?

I am adding my previous version i.e v12 code in print format but Jsbarcode is not rendering an image of the particular barcode is there any way to solve this? but the same is working in v12

2 Likes

I have been looking for the same. I will try it on my local installation and let you know. You could also do the same and share your results.

@Botanium I already tried it in v12 it is perfectly working fine but somehow in v13 barcode is not rendered.

We can add this url in image source.

<img src=“https://barcode.tec-it.com/barcode.ashx?data={{ doc.name }}&code=Code128&translate-esc=true”

1 Like

@aashishvashisht6
Can you please send full print format. It will be very helpfull

@abrarpv97
You can refer to this screenshot

1 Like

Hi,
I also have this problem after upgrading to version-13.
no barcode rendered on the screen.
but full screen view is ok .

Any solution while sticking on jsbarcode instead of using tect-it.com ?
the error msg in the browser console were:

Unable to handle success response request.js:272:12
console.trace() NoElementException: No element to render on. request.js:273:12

The solution by using tect-it is working but i think is better to use the one that frappe use which is jsbarcode.

I have try the sample print from jsbarcode and having the same error

When I try to change the format to standard and back to my print format, there is one more additional error:
(may just my format error though)
Uncaught SyntaxError: expected expression, got ‘<’
jQuery 13
setup_print_format_dom print.js:428
preview print.js:401
callback print.js:635
callback request.js:83
200 request.js:127
call request.js:269
jQuery 6
call request.js:251
call request.js:103
get_print_html print.js:623
preview print.js:396
refresh_print_format print.js:290
change print.js:101
set base_control.js:181
promise callbackfrappe.run_serially/< dom.js:258
run_serially dom.js:256
set base_control.js:172
validate_and_set_in_model base_control.js:196
parse_validate_and_set_in_model base_control.js:158
change_handler data.js:142
later utils.js:836
setTimeout handler
debounce/< utils.js:840
jQuery 2

folowed by the 2 error above :

Unable to handle success response request.js:272:12
console.trace() NoElementException: No element to render on. request.js:273:12

If you like to see the complete error , please try using the example from jsbarcode web.

regards
aditya