Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
We've encountered an issue exporting this macro. Please try exporting this page again later.

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

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

Letters data source

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

See More

Child pages (Children Display)
pageExamples for PCF