If a web form is not published while creation, and the ‘Published’ variable is modified later, the form does not get published.
WORKAROUND: adding the url of web form to top bar (in Website Settings) leads to it being published. (Weird?)
PS: I am trying to implement printing barcodes using this:
You need to add URL of the web page in Website Setting for the ease of navigation. Otherwise, URL for the web page is active as soon as it is published.