How to automatically generate front-end barcode from back-end data

I have several values. I directly assign the values to the barcode attribute fields through the back end. How can I automatically trigger the barcode format generation. Now trigger requires me to manually click barcode attribute character to generate. What do I need to do?