picker and text field

Hi all ,

I have the requirement ,

When user types in the field , it shows down the list as suggestion but it also allows to save what is not in list . 
(Eg: when "a" is typed : --> {"apple","aeroplane","awesome"} is suggested . 
                                             But when user types "akward" ,which is not in list . It is still able to save this word in local variable.

I refered to (https://docs.appian.com/suite/help/19.4/recipe-configure-an-array-picker.html) .
But when I typed, whats not in list , it says "No search found" and doesn;t allow me to save what I typed.

ANY HELP ?

Kind Regards

  Discussion posts and replies are publicly visible

Parents
  • Create an expression rule with the below code snippet and call this rule in your SUGGEST FUNCTION:

    Expression Rule inputs: 

    choiceList: text(multiple)

    searchValue: text

    Code: 

    if(
    contains(ri!choiceList,ri!searchText),
    a!dataSubset(
    startIndex: 1,
    batchSize: -1,
    totalCount: count(ri!choiceList),
    data: ri!choiceList,
    identifiers: ri!choiceList
    ),
    a!dataSubset(
    startIndex: 1,
    batchSize: 1,
    totalCount: 1,
    data: ri!searchText,
    identifiers: ri!searchText
    )
    )

Reply
  • Create an expression rule with the below code snippet and call this rule in your SUGGEST FUNCTION:

    Expression Rule inputs: 

    choiceList: text(multiple)

    searchValue: text

    Code: 

    if(
    contains(ri!choiceList,ri!searchText),
    a!dataSubset(
    startIndex: 1,
    batchSize: -1,
    totalCount: count(ri!choiceList),
    data: ri!choiceList,
    identifiers: ri!choiceList
    ),
    a!dataSubset(
    startIndex: 1,
    batchSize: 1,
    totalCount: 1,
    data: ri!searchText,
    identifiers: ri!searchText
    )
    )

Children
No Data