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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ACC - Content management 'Content' object variable in Personalization block

Avatar

Level 2

Hi - I have JS delivery template, where I have access to "Content" object (using Content management). I have some custom forms as part of delivery template, where users can do some inputs on the forms to customize the delivery.
I have a table linked to recipient, which has 1-M relation to the recipient.

I need to build a personalization block, which has access to recipient object. But I need to fetch specific data based on the input done on the content management/template input form.

So how can I pass a variable from JS template or delivery (content.@formVariable) to pass to personalization block? 
I looked at varialbles under delivery/properties but delivery object is not available in JS template. 

Any ideas?

Thanks! 

1 Accepted Solution

Avatar

Correct answer by
Level 2

Found the way:
delivery.content.content[0].@formVariableName

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Found the way:
delivery.content.content[0].@formVariableName