Is there an alternative to setOption() in personalization blocks? | Community
Skip to main content
Level 2
February 13, 2025
Solved

Is there an alternative to setOption() in personalization blocks?

  • February 13, 2025
  • 1 reply
  • 489 views

Hello,

 

as the query says, im trying to fins a way to set an option without using setOption() since it does not work in personalization blocks. Anyone facing same issue and found a way/workaround to make it work? 

 

 

Thanks

Best answer by ParthaSarathy

Hi @pabloneruda,

You can call the Option value in Delivery's script tab and follow the steps mentioned in this thread to call the variable in delivery's personalization block.

Script to enter in Delivery's script tab:

delivery.variables._var[0].stringValue= getOption (optionName);

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
February 13, 2025

Hi @pabloneruda,

You can call the Option value in Delivery's script tab and follow the steps mentioned in this thread to call the variable in delivery's personalization block.

Script to enter in Delivery's script tab:

delivery.variables._var[0].stringValue= getOption (optionName);
~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Cl4ud
Level 2
February 22, 2025

Thank you very much, i ll try this way. 🙂