Pre-Populate a catalogue item variable when clicking on a link

Steven Watts2
Tera Guru

Hi, 

 

Is it possible to pre-populate a catalogue variable when a user clicks on a link? The value cannot be set as a default value in the variable directly as it will be different each time the link is clicked.

For example:

User clicks on the link via an email, that email contains 'STRING MESSAGE' in the email body. When they click on the link to the catalogue item, we'd like 'STRING MESSAGE' to be pre-populated in a variable on the catalogue item.

 

I was wondering if the information code be JSON formatted and sent as Key | Value pair in the URL? Or, any other method?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Niklas Peterson
Mega Sage
Mega Sage

Hi,

Yes, you can pass them as URL parameters in the link and then capture them with an onLoad catalog client script and then update the varible.

Regards,
Niklas

View solution in original post

2 REPLIES 2

Niklas Peterson
Mega Sage
Mega Sage

Hi,

Yes, you can pass them as URL parameters in the link and then capture them with an onLoad catalog client script and then update the varible.

Regards,
Niklas

Thanks @Niklas Peterson 

I'll give that a go next week.