Skip to main content
January 12, 2021
Question

[Segmentation] - Pass custom data to script reference

  • January 12, 2021
  • 1 reply
  • 980 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 12, 2021

@mikolajbudasii,

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

January 13, 2021
Example script is located at: /libs/cq/contexthub/code/kernel/segment-engine/comparison-scripts/comparison-script-template.js