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

[Segmentation] - Pass custom data to script reference

MikolajBudaSii
Level 1
Level 1

Hello,

is this possible to pass data from AEM into custom script reference? There is example script in CRX that has two params: val1, val2. I can't figure it out from which place they are taken. As a final result I would be able to pass value into the script which is used there for comparison.

2 Replies
BrianKasingli
Community Advisor
Community Advisor

@MikolajBudaSii,

Can you show us the location off the script, please? Provide the JCR path.

MikolajBudaSii
Level 1
Level 1
Example script is located at: /libs/cq/contexthub/code/kernel/segment-engine/comparison-scripts/comparison-script-template.js