Generate the sign-up widget

You can generate the sign-up form manually by calling:

RH.generate.form();

This function will return an HTML element. To display the sign up form on your page, simply append it to another element on your page. For example, you can append the form to a div on your page like this:

<div id="signup-form"></div>
<script>
if (RH) {
var form = RH.generate.form();
var div = document.getElementById("signup-form");
div.appendChild(form)
}
</script>

You can see a live example here: https://codepen.io/Manu66/pen/eYYqPVz

Display sign-up form in a popup

If you want to display the sign-up form in a popup you don't need to append the form into an existing element. Instead, simply call:

RH.generate.popup(RH.generate.form());

For example, if you want to trigger the popup when a button is clicked, you can do something like this:

<button id="btn">Open popup</button>
<script>
var button = document.getElementById("btn");
button.addEventListener("click", function(e){
if (RH) {
var form = RH.generate.form();
RH.generate.popup(form);
}
})
</script>

You can see a live example here: https://codepen.io/Manu66/pen/bGGXmKP