Hello, does anyone know how I can make a custom picker to save the value if it is not in the list?
The code is that:
a!pickerFieldCustom( label: "Tipo de entrada", labelPosition: "ABOVE", maxSelections: 1, suggestFunction: rule!ERYM_FiltroComponente( filter:_ , labels: local!tipoEntrada, identifiers: local!tipoEntrada ), selectedLabels: a!forEach( items: ri!expediente.tipoEntrada, expression: index(local!tipoEntrada, wherecontains(fv!item, local!tipoEntrada)) ), value: ri!expediente.tipoEntrada, saveInto: ri!expediente.tipoEntrada, showWhen: a!isNotNullOrEmpty(ri!expediente.inTipoExpediente), ),
Discussion posts and replies are publicly visible
Try this into your suggestFuction:
if( count(local!matches) > 0, a!dataSubset( data: index(ri!labels, local!matches), identifiers: index(ri!identifiers, local!matches) ), a!dataSubset(data: ri!filter, identifiers: ri!filter) ), )
Yes, this works, thank you very much!!!
Duplicate thread - community.appian.com/.../save-value-in-a-custom-picker