adding js to ACS html

Avatar

Avatar
Give Back
Level 1
daver37819942
Level 1

Like

1 like

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
daver37819942
Level 1

Like

1 like

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile
daver37819942
Level 1

13-07-2020

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
 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

258 likes

Total Posts

372 posts

Correct reply

152 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Boost 250
MVP
DavidKangni
MVP

Likes

258 likes

Total Posts

372 posts

Correct reply

152 solutions
Top badges earned
Boost 250
Validate 1
Give Back 5
Give Back 3
Give Back 25
View profile
DavidKangni
MVP

13-07-2020

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

Answers (0)