Autoname on Barcode field

Well i do found my solution using other method.

which is i use HTML type instead of Barcode type, and I use doc.name as the value to be convert to barcode.

I refer to this post