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

Include option value in string

Avatar

Avatar
Validate 1
Level 1
roro_coeur
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
roro_coeur
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
roro_coeur
Level 1

19-06-2020

Hello,

 

In a delivery template, is it possible to get the value of an option without using an include (<%@ include option='myOption' %>)?

I actually need to include an option in a javasript string :

 

<%

var string = "Hello, blabla: [option]";

%>

 

Thank you for your help,

View Entire Topic

Avatar

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,087 posts

Correct Reply

507 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile

Avatar
Establish
MVP
wodnicki
MVP

Likes

960 likes

Total Posts

1,087 posts

Correct Reply

507 solutions
Top badges earned
Establish
Affirm 500
Contributor
Shape 1
Give Back 100
View profile
wodnicki
MVP

19-06-2020

Hi,

 

<%
var string = "Hello, blabla: " + getOption('[option]');
%>

 

Thanks,

-Jon