Client Side SDK

Customising Form Visibility

By default, Viral Loops will hide your custom form and instead display the content inside a data-vl-container='sharing-stage' element when someone participates or has already joined your campaign and is returning to your website.

To prevent this behaviour and keep your form visible, you can add a data-vl-visibility attribute with the value always to your form.

<form
       data-vl-campaign-id="your-campaign-id"
       data-vl-container="join-stage"
       data-vl-action="join-stage#join"
       data-vl-visibility="always"
  >
 </form>