adding a form with a link

Callum_Pirie
Level 3

adding a form with a link

Hi there,

is there anyway to embed a marketo form by just using a ahref link?

7 REPLIES 7
Jay_Jiang
Level 10

Re: adding a form with a link

Are you talking about a modal/lightbox popup?

Callum_Pirie
Level 3

Re: adding a form with a link

sorry, modal

Jay_Jiang
Level 10

Re: adding a form with a link

Marketo developers docs have an example:

http://developers.marketo.com/rest-api/assets/forms/examples/#crayon-5ca47945130bd193273350

http://developers.marketo.com/examples/forms2/example8.html?lightboxForm=true

as per the example, your <a> tag would be:

<a href="?lightboxForm=true">Click to show form</a>

EDIT: actually this is a horrible example

Callum_Pirie
Level 3

Re: adding a form with a link

not sure this will work. sadly the developers have only given us a small amount of access to do this and no access to the code.

the website in question is here Diploma in Digital Marketing | Study Online in the US

in the backend i get a small area here to add a link

test.png

Jay_Jiang
Level 10

Re: adding a form with a link

if that's all you get to work with, then not possible.

The Marketo form embed code itself is script, to make it modal, you need to write more script. If all you're allowed is a link, you'd have to link the poor person to some other landing page where the form is embedded

Callum_Pirie
Level 3

Re: adding a form with a link

is there any other way to do this? even if it was a lightbox?

Jay_Jiang
Level 10

Re: adding a form with a link

A lightbox or modal is done by essentially javascript (there are lots of jQuery plugins around)

A link and the click action of a link is just the trigger/listener for javascript to open the lightbox/modal. You need to be able to add javascript to make it work.