Forums

include html widget

Tiko 17 Dec, 2013
Hello,
I'm making a form so visitors can subscribe to our newsletter directly from our website. I manage my mailinglists and email campaigns from a site called Mailjet, and they delivered a widget so I can do this, but now I want to combine this widget to a chronoform, so people can save their personal info (name, structure etc) to my chronoform database and the inscription is done when they click on the submit button. Can anyone tell me how I would be able to link the two? This the code of the widget:
<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://widget.mailjet.com/1f3ab9a2ceece403df742fa8d79138bb43553b28.html" width="250" height="138"></iframe>

Thank you in advance,
Tiko.
GreyHead 17 Dec, 2013
Hi Tiko,

If you look at the widget form you will see that it has these main features:
A submit URL: "https://fr.mailjet.com/account/tools/widget/subscribe/BW"
and three inputs with these names and values
email = user input
name = user input
send = Inscription (the submit button)

The first test to do is to build a ChronoForm just like this and see if it works OK. (You can set the Submit URL on the form General Tab.)

If that is OK then there are a couple of ways to make it work in a ChronoForms (a) use the cURL action with that Target URL and parameters or (b) create a 'dummy' form in a Thank You page action with a 'Confirm' button to submit it (or a JavaScript timed submit).

If you prefer to do the job 'properly' and don't mind a bit of coding then it looks as though MailJet has a full API that will let you do just about anything from your form.

Bob
Tiko 17 Dec, 2013
Incredible, you really looked into my problem...! I'm stunned! I'm no big coder, but I'll take a look at all three solutions, starting with the last one... Never to young to learn🙂 . Thank you very much, and I'll let you know about my solution.
Tiko
Tiko 04 Feb, 2014
Hello, back again. I had some help from a friend, and now I have the api written and ready, but now I have to include it in the right place in the form. But where! I included a checkbox so people can choose if yes or no to inscribe, so this has also to be included... Any help?
Thank you in advance,
Tiko
This topic is locked and no more replies can be posted.