Example 6 - More dependent fields

In the Power Customer Fields example using countries and letters, you can select a letter in a custom field based on a country selected in a different custom field.

The following video has information about how dependent fields work.

https://fast.wistia.com/embed/medias/aqj6ew4kki.jsonp

Script details

The options for the Country custom field were taken from the database. The following scripts are used in this example:

Country data source

return {"Romania", "France", "Norway", "Spain"};

Letters data source

string[] letters = {}; string cfname="Country"; for(int i=0; i<length(argv[cfname]); ++i) { letters += argv[cfname][i]; } return letters;

See More