Versions Compared

Key

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

...

To use the screen values for a field in the data source, you have to add it as a dependent field. 

Example

...

Let's say we have two custom fields: one  PCF-PRO - Single Autocomplete and one and PCF-PRO - Multiple Autocomplete, and the second one field is populated depending on the value of the first one.

An easy example is following: For instance, the first custom field has five options , representing the five continents, and the second one contains the countries from some table ("countries")the countries table, depending on the value selected on the first one. 
You can see the corresponding data sources below.

The following data source represents the first custom field: 

...


The following result will be in on the issue view screen: 


A similar example can be found You can find a similar example here.

Note

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

From Starting with 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, you will have to refer it like this: "argv[customfield_id]"

See also