How can I create a button in a widget that pops up a form created in ZOHO Creator when clicked?

How can I create a button in a widget that pops up a form created in ZOHO Creator when clicked?

I know that using HTML snippets, clicking the button can pop up the form. However, the same code does not work in the widget.
  1. <button><a href="#Form:form2?zc_LoadIn=dialog">Add</a></button>