SOLVED

If Known Visitor, Hide Form

Go to solution
Julz_James
Level 10

Re: If Known Visitor, Hide Form

That's excellent thank you so much!

Julz_James
Level 10

Re: If Known Visitor, Hide Form

Hi Sanford Whiteman​ - I've just realised that I can't use the bit of script at the end of my form as the form is a generic one used on multiple landing pages, so if I put 'document.location.href="http://go.cornerstoneondemand.com/your.pdf";' within the form it would only go to one pdf, not each individual one.  Do you think there is anywhere on the landing page that I could insert something to guide the form?  I've put form code on landing pages before to adjust the look of the form, would this work the same?

Thanks

Juli

SanfordWhiteman
Level 10 - Community Moderator

Re: If Known Visitor, Hide Form

Sure, you can have the Known Lead HTML skip directly to the Forms 2.0 submit event, which means it will redirect to whatever Thank You URL you have set for the current LP.

  MktoForms2.allForms()[0].submit();

Be aware that if you have an entirely new HTML page as the Thank You URL (you're now using "http://www.csod.co.uk/") as opposed to a downloadable PDF, then the whole page will naturally redraw.  This can be confusing to troubleshoot but is in fact consistent with what you're saying ("go to the Thank You immediately if known lead").

I also see you're using Progressive Profiling, which makes me think you maybe haven't thought of the consequences there?  If you want to have a quick chat about it today hit me at sandy@figureone.com and we can figure out how you can best accomplish these intersecting goals.