SOLVED

Is there a way to require someone to fill out a form to view content on a page?

Go to solution
Anonymous
Not applicable

Is there a way to require someone to fill out a form to view content on a page?

I built a page that houses "on-demand" training videos that I am requiring people to fill out a form to watch. Currently - I have it set up so there's a page with a form, and the page that houses the videos is the "thank you" page.

But - If someone gets a hold of the "thank you" page, and they haven't filled out the form, I want them to be redirected to the page with the form.

Is this possible with Marketo? Any solutions out there?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Calvin_Lam
Level 4

Re: Is there a way to require someone to fill out a form to view content on a page?


I am pretty sure that you can't access the entire browser history since that would be a major security flaw.  However, Rajesh's solution will still work and hold true if you simply look for the previous page the lead came from.  In this example, if the previous page is not the form fill-out, then redirect.

The code is really simple.  See http://www.w3schools.com/jsref/prop_doc_referrer.asp  ... all you need to do is check document.referrer.

This will actually be a pretty good feature suggestion that a lead cannot access a resource such as a landing page, video or PDF file unless they are validated to have all the required information.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: Is there a way to require someone to fill out a form to view content on a page?

There can be multiple ways to get this done. But I will go with a simpler approach.

I think with some custom javascript logic, you can achieve this. 
On your thank you page, include a javascript code which will check for the 'browser history' object and check if the history contains the url of the form you want to be submitted. If that form is not there in history, it means the user directly arrived at your 'video' pages by pasting the url etc. Thus if the history, does not contain the form url, just redirect to the webform. Otherwise, simply display your videos.

There can be ways one can sneak past this, and with some other additions or all together different approaches, that can be enforced more tightly. But I always lean towards simpler and effective solution than complex, 100% foolproof on especially in marketing related workflows.

Let me know if you have any questions. Hope this helps.

Rajesh


Anonymous
Not applicable

Re: Is there a way to require someone to fill out a form to view content on a page?

I've had similar needs in the past. Thanks Rajesh for explaiing.
Calvin_Lam
Level 4

Re: Is there a way to require someone to fill out a form to view content on a page?


I am pretty sure that you can't access the entire browser history since that would be a major security flaw.  However, Rajesh's solution will still work and hold true if you simply look for the previous page the lead came from.  In this example, if the previous page is not the form fill-out, then redirect.

The code is really simple.  See http://www.w3schools.com/jsref/prop_doc_referrer.asp  ... all you need to do is check document.referrer.

This will actually be a pretty good feature suggestion that a lead cannot access a resource such as a landing page, video or PDF file unless they are validated to have all the required information.

Anonymous
Not applicable

Re: Is there a way to require someone to fill out a form to view content on a page?

Thanks for the input - I'm getting this taken care of this week!
Anonymous
Not applicable

Re: Is there a way to require someone to fill out a form to view content on a page?

I submitted this idea (along with other functionalities). Lets see...

Rajesh