Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

[Segmentation] - Pass custom data to script reference

Avatar

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

Avatar

Community Advisor

@MikolajBudaSii,

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

Avatar

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