Skip to main content
June 13, 2022
Question

User picker field

  • June 13, 2022
  • 3 replies
  • 0 views

Hi,

i am using a!pickerFieldUsers() i have added the instruction, if no user present in XX group ,no search found would be displayed, but after entering and selecting the user, the instruction would appear for short time[1sec] and then disappear

a!pickerFieldUsers(
label:"User",
labelPosition: "ADJACENT",
maxSelections: 1,
instructions: if(
rule!APN_isBlank(ri!user),
"If user you search above is not present in XX, you will see No results found. ",
null
),
placeholder: "Type to search for the user",
groupFilter: local!users,
value: ri!user,
saveInto: {
a!save(ri!user, save!value),
a!save(
ri!user,

)
}

)

    3 replies

    June 13, 2022

    If your goal is to indicate to the user that no user is present to select given the input - I think there is no indication needed here.

    If your goal is to indicate that the selected user results in no relation with X group, then another approach would be to conditionally show an alert banner or rich text for this situation.

    agamb0001
    June 13, 2022

    [mention:9716fbd930e84dc59628e93451bf682f:e9ed411860ed4f2ba0265705b8793d05]

    whats your code in the last line. It seems to be missing the value to save.

    a!save(
    ri!user,

    )

    It also looks to be redundant. Can you remove this and retry.

    Also, if your instruction is appearing for just 1 sec after you select the user, it could just be processing like do you see the progress line at the top that appian is processing your input ?

    June 13, 2022

    ignore that, i have to remove it, forgot to comment