Embed campaign forms via JavaScript

Avatar

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
dimitrisg442106
Level 1

19-09-2017

Hello,

I want to embed campaign forms on my site via JavaScript. Does anyone know if this impossible?

I have seen this manual https://docs.campaign.adobe.com/doc/AC6.1/en/CFG_API_Web_service_calls.html  but I think if I use this I will break the CORS and some security on my site

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile

Avatar
Springboard
MVP
Amit_Kumar
MVP

Likes

329 likes

Total Posts

649 posts

Correct reply

231 solutions
Top badges earned
Springboard
Ignite 5
Ignite 3
Ignite 1
Validate 10
View profile
Amit_Kumar
MVP

24-09-2017

Hi, Dimitris,

If you are using AEM for your websites, then it's an OOTB feature.

Creating Custom Form Mappings

Otherwise, you have to go with Custom implementations. Follow the given steps:

  • Create to backend services(Node JS/.net/Java).
  • Service one will be used to establish the connection from Website/Campaign and get a session token for that connection using SOAP API.
  • Service two will be responsible for GET/POST operation from website to campaign after validation using SOAP API.

This way you will not be exposing your credentials, and all the request will be accepted from your site, no other website will be able to exploit your service. Let me know if you need more details.

Regards,

Amit

Answers (4)

Answers (4)

Avatar

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
davidl14970702
Level 4

14-03-2018

You can set up a JSSP page in adobe campaign, as an endpoint to receive form submissions from a standard HTML form. Its pretty cool. It puts the form submission directly in the recipients table. Some customization may be needed but check out Advanced tips and tricks on this video Recap - Campaign Wednesdays  and they run through it in the first 10 min,

Avatar

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
dimitrisg442106
Level 1

27-09-2017

Thank you for your reply Amit. 

Avatar

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
dimitrisg442106
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
dimitrisg442106
Level 1

19-09-2017

Hi J-Serge,

We use Adobe Campaign version 6.1.1.

We have several forms on Adobe campaign and I would like to embed them into our pages so visitors don't need to open a new tab to fill the form.

I would like to use the XML forms and just push the form on the site when is available. But, you confirmed my "fear" that the credentials must be available on the client side, which I don't want to happen.

Regards,
Dimitris

Avatar

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Jean-Serge_Biro
MVP

19-09-2017

Hi Dimitri,

Please may you describe a bit more your requirement and your Adobe Campaign version as well (ACS or AC v6.x.y/v7.0)?

ACS and AC v6/v7 have different possibilities including API, please confirm your environment.

Do you mean including Adobe Campaign webApp (standard or microsites) through html iframe object?

Or do you intend to display Adobe Campaign forms (XML forms) needing AC authentication and an operator account?

Or rather, as far as I guess from your request, do you want to develop your own html web form on your own web site, and call some Adobe Campaign SOAP calls to trigger some actions (deliveries, save profiles data in AC database, etc).

But in that case, the best thing is to do it at Web server side, not on the client, either in JSSP, or JSP, or php or .NET whatever your choice.

So there are no CORS issues because you can manage cross-domain on your Apache/Tomcat/IIS/nginx settings.

Regards.
J-Serge