Form lightbox fill out mandatory to access content

Anonymous
Not applicable

Form lightbox fill out mandatory to access content

Hello,

When embedding a lightbox form into a separate website, I would like to remove any possibility for the visitor to close the form and access the content appearing underneath anyway.

Is there a way to edit the form code and remove this "close" icon that appears automatically when the form loads?

Thank you

Michael

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Form lightbox fill out mandatory to access content

Yes, but that's of questionable usefulness.

If you want the user to only be able to see the URL after they submit the form -- not if they just peek at your HTML source, which is dirt-simple regardless of whether they fill out a modal form -- then set the URL as the "Follow Up" URL in the Form Editor.  Then in the onSuccess handler, and only then, write the URL into the page.

Anonymous
Not applicable

Re: Form lightbox fill out mandatory to access content

Hi Sanford,

Thank you for your reply.

I believe it is more attractive for a visitor to see the content they can access if an only if they pass that sort of gate (form) on top rather than having the gate (form) on a separate page without knowing what they will have access to.

Could you let me know how to delete this "close" button?

Thank you for your help.

Michael

SanfordWhiteman
Level 10 - Community Moderator

Re: Form lightbox fill out mandatory to access content

Michael, there's no difference in "attractiveness" between what I'm saying and your description.  The visual and navigation experience for a legitimate user is exactly the same: they submit the form and then the form disappears and they see the link to the content on the page "below" where the form was, without going to a new page.

While you can stop someone from properly closing the modal form ("modal" is when a form appears to be on top of everything else and usually sits on a grayed-out background) if the URL is always in the HTML "below" the form a mildly curious user can just copy the URL off your page regardless of whether they've submitted or X'd out of the form. In two seconds they can do View-Source or open Developer Tools and copy the URL.  It's no real protection at all against someone who really wants your asset, and they don't have to be a "hacker" per se nor know how to code.

On the other hand, if you use the "Follow Up" URL -- this is exactly what it's designed for -- then the URL doesn't even exist in the HTML source until they've successfully submitted the form.  So whether or not you disable the "X", they won't be able to grab your asset unless they have successfully filled out the form (whether their information is genuine is another question, but at least you have put the URL out of their reach until they fill in someone's ​email).  A concerted hacker could avoid filling in an email address at all, though they might as well just use a@b.com, but you've made a good-faith attempt to make it harder for them. The challenge of finding View-Source doesn't rise to that level, IMO.

Do you see the difference?

Anyway, removing the "X" is as simple as MktoForms2 :: Lightbox :: Remove Close X

SanfordWhiteman
Level 10 - Community Moderator

Re: Form lightbox fill out mandatory to access content

Dynamically adding the link only after the user has successfully submitted: MktoForms2 :: Lightbox :: Add A onSuccess

Anonymous
Not applicable

Re: Form lightbox fill out mandatory to access content

Hi Sanford,

Thank you for your second reply as well. That's simply perfect.

Great alternative.

Michael

Alessio_Golfett
Level 1

Re: Form lightbox fill out mandatory to access content

You can use css for this

<style type="text/css">

.mktoModalClose { display: none !important; }

</style>