Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

For loop Script in Html diffusion

Avatar

Level 2

Hello community,
I'm trying to do a loop in the html and concatenate fields that I want to retrieve in the mail with the increment value i of the for loop,
Here is the script I used but it didn't work,


<script> <% for(var i=0;i<5;i++) { %>  </script>
<%= i %> - <%=context.targetData.AllWkf1.name_wkf %>
<script><%}%> </script>

 

What i want is to concatenate the value i with the AllWkf and loop it until I retrieve the values that I want,
For Example : 
context.targetData.AllWkf1.name_wkf
context.targetData.AllWkf2.name_wkf

context.targetData.AllWkf3.name_wkf

context.targetData.AllWkf4.name_wkf

...

Could anyone help me with this ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello 

 

Scripting is not officially allowed in ACS.

Thanks,

David



David Kangni

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hello 

 

Scripting is not officially allowed in ACS.

Thanks,

David



David Kangni

Avatar

Level 2

HI @DavidKangni , Thank you for your time,
I would like to know if scripting will be allowed in ACS future releases?

Avatar

Community Advisor

There are multiple enhancement requests for this scripting functionality but we don't have any tentative release dates at this time.

If you have an account manager, you may ask him if it's on 2021 roadmap.

Thanks,

David



David Kangni