JavaScript Populate Drop Down List from another Campaign

Centralising data in another campaign can make custom drop down lists far easier to manage.

A good example of this is a centralised product list which can change frequently.

To save time there is a standard block which can be used which uses the same AJAX engine as the Self Referencing Campaign Code and Data Injection code

1. Create a campaign to hold the product list.

Build a campaign and in it type or load all of the products you would like to see in the drop down list.

The campaign should have two fields. The product name and a limiting / grouping field. The grouping field could be a yes / no question. i.e. if Yes, show it. If no, don't show it.

With the product campaign built, then note the field names of the product anme and the limiting / grouping field.

2. In the campaign where you want the list populated : In the Instructions – Dial Out Instructions add

3. In the campaign where you want the list populated : In the onLoad add

Easy peasy!

Cateogry:JavaScript