Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleRequired apps
  • Power Custom Fields PRO™ or
  • Power Custom Fields

Use case

...

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.

Video

...

The following video has information about how dependent fields work.

https://

...

...

...

/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 = 

...

Note

For the moment, dependent fields can only be used by the two custom fields with autocomplete.

From Power Custom Fields PRO 4.0.0, you can now use the dependent fields on SQL data sources as well.

In order to get the value set on the screen for one custom field, reference it like this: "argv[customfield_id]".

See also

...

{};
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