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

Custom Code to define data elements

Avatar

Avatar
Contributor
Level 5
mubarakd5726232
Level 5

Likes

86 likes

Total Posts

89 posts

Correct Reply

3 solutions
Top badges earned
Contributor
Shape 25
Shape 10
Shape 1
Ignite 1
View profile

Avatar
Contributor
Level 5
mubarakd5726232
Level 5

Likes

86 likes

Total Posts

89 posts

Correct Reply

3 solutions
Top badges earned
Contributor
Shape 25
Shape 10
Shape 1
Ignite 1
View profile
mubarakd5726232
Level 5

16-11-2018

New to launch and struggling to find any documentation/clarification with the following ..I suspect it's using custom code but no info on how to set the value.

Looking to define custom data elements to then use to populate prop/evars eg.

How would I define pagename element which simply takes the first element from the path and  appends with another string value or similarly checks for hostname and modifies

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

27-11-2018

You can access custom variables inside the s object. For example:

s.eVar1 = 'My custom value';

You can access data elements using the _satellite.getVar() method. So to assign a data element to an eVar in custom code:

s.eVar1 = _satellite.getVar('custom data element');

More information on getVar can be found here:

https://docs.adobelaunch.com/client-side-information/launch-object-reference#launch-object-reference

Answers (0)