Skip to main content
June 5, 2025
Solved

pickerFieldCustom: selected value is getting replace with identifiers value

  • June 5, 2025
  • 6 replies
  • 0 views

the pickerFieldCustom field is replacing the user selected data to its identifier value , please suggest how to solve this. 

my datasubset is as below :

a!dataSubset(
data:a!flatten(local!output.data),
identifiers: a!flatten(local!output.identifiers)
)

 

    Best answer by amaans4178

    Hi [mention:cb456d224b5649eba24f466d94973974:e9ed411860ed4f2ba0265705b8793d05] ,

    In pickerFieldCustom, there's a parameter called selectedLabels (a list of text strings) that accepts an array of labels corresponding to the currently selected items.

    To populate this, you'll need to run an additional query using the selected item IDs as a filter to fetch their corresponding labels, and then pass those to the selectedLabels parameter.

    This approach is also outlined in the recipe shared by Stefan. However, note that the recipe uses static data—you’ll need to implement a dynamic query that refreshes on every value change.

    6 replies

    stefanhelzle0001
    June 5, 2025

    The labels for the selected items are defined by the "selectedLabels" parameter.

    Example: https://docs.appian.com/suite/help/25.2/recipe-configure-an-array-picker.html

    June 5, 2025

    thanks [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05]  for your prompt response. 

    the expression rule is taking user input and doing a DB query which return back list of user and id like below :

    sample data:{gaurav, Stefan},
    identifiers: {1,2}

    when user select gaurav ,pickerFieldCustom  is changing "gaurav" to 1 , that is the problem. 
    please can you share a sample example if you have any. i checked your site also (appian rocks) but unable to get a solution. 

    Thanks for your help.