Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

adding js to ACS html

daver37819942
Level 3
Level 3

In ACS can one add js to create on fly(dynamic) variables that would passed on through a transactional payload?

so create a title or message based of a payload variable?

Example: status would be passed
<!-- <%
title = ""
message = ""
if (status == "closed") {
title = "Thank You For Your Order"
message = "Your payment for this order has been processed."
} else if (status == "autocancelled") {
title = "Your Order Has Been Cancelled"
message = "Unfortunately, we were unable to fulfill your order at this time. You will not be charged."
} else if (status == "cancelled") {
title = "Your Order Has Been Cancelled"
message = "You will not be charged."
} else if (status == "partialrefunded") {
title = "Items From Your Order Have Been Refunded"
message = "We have issued you a refund to your original form of payment."
} else if (status == "refunded") {
title = "Your Order Has Been Refunded"
message = "We have issued you a refund to your original form of payment."
}
%> -->
When trying to add this there is an error when saving the html
 
Thoughts
 
1 Accepted Solution
DavidKangni
Correct answer by
Community Advisor
Community Advisor

Hi Daver,

 

You can not add js in Adobe Campaign Standard (officially it's not supported). However, You can achieve this using dynamic content functionality.

 

Thanks,

David

View solution in original post

3 Replies
DavidKangni
Correct answer by
Community Advisor
Community Advisor

Hi Daver,

 

You can not add js in Adobe Campaign Standard (officially it's not supported). However, You can achieve this using dynamic content functionality.

 

Thanks,

David

View solution in original post