How do I disable a lightbox form for known visitors | Community
Skip to main content
January 8, 2016
Question

How do I disable a lightbox form for known visitors

  • January 8, 2016
  • 1 reply
  • 951 views

I understand how to add custom text for know visitors on lightbox popup form, but I don't want it to show anything for known visitors. 

I thought that I could do something like add this into the custom text:

<script language="javascript" type="text/javascript">

MktoForms2.lightbox(form).hide();

</script>

But the known text doesn't seem to like JavaScript.

I can't be the only one that needs this functionality and I can't find anything in the documentation.  Is this possible?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
January 8, 2016

KL HTML was fine with script tags last time I checked. Is the problem actually that the variable form is out of scope?  What do you see in the console log?