We are trying to see if we can utilize the klaviyo forms while running an A\B test and trigger the form for specific variant base on our own logic on the website.
i only saw the ability to display the form via
window._klOnsite = window._klOnsite || ;
in the documentation it states the following:
- When a form has an ongoing A/B test, this API simply triggers the form’s display. It is your A/B testing logic, which is separate, that determines which variation displays. If you have an A/B test where a variation of your form has a custom trigger, you will still need to add custom trigger code to your site.
is there a way that we can trigger the form with the specific variant, i.e. something like:
window._klOnsite.push('openForm', 'FormID', ‘variantA’);
thanks for your help,
Best answer by Taylor TarpleyView original