rendering form based activities after page view event | Community
Skip to main content
Michael_Soprano
Level 10
February 21, 2025
Question

rendering form based activities after page view event

  • February 21, 2025
  • 4 replies
  • 976 views

I would like to render Form Based activity from Target. Conditions would be checked through Target Activity script. I do not want to bother with any Decision Scopes etc ....

What code should I put in second action? Or should I apply propositions?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

kautuk_sahni
Community Manager
Community Manager
February 26, 2025

@brekrut @gigicotruta @riteshy18 @reenajohn @pradeep_kumar_srivastav @dhaneshsh2 @travis_jordan @kendallhall If you're available, please check out this question and share your thoughts. Your help means a lot!

Kautuk Sahni
GigiCotruta
Level 4
February 26, 2025

Hi, @michael_soprano,

 

One quick question:

Rendering from Launch would mean rendering client-side, why would you need it? Form Based activities are usually used for server-side rendering.

It is easier to implement a Visual activity from Client Side.

 

However, if you still want to do it this way, you are probably looking for the following:

You have to capture the response from target activity and then, render it. 

Make sure to check the "Render visual personalization decisions" checkbox.

Michael_Soprano
Level 10
March 3, 2025

In some browsers and corporate VPNs VEC does not work and as a consultant I have crazy deadlines ....

So what should I write in Response headers and in Response body? 

Response from Web SDK is like that in Network. Should you explain this step by step?

 

RiteshY18
Community Advisor
Community Advisor
February 27, 2025

@michael_soprano  scope is activity and proposition is content, in your case 

add  html DOM code to update content via code load via form activity 

Michael_Soprano
Level 10
March 3, 2025

Something like that?

 

RiteshY18
Community Advisor
Community Advisor
March 3, 2025

@michael_soprano  yes, did it work ? and what other options u have for action?

kautuk_sahni
Community Manager
Community Manager
March 7, 2025

@michael_soprano Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni