Hi Everyone,I want to add new value using custom picker field .Let's say , I have picker field name country and its having all country but not "XYZ".So how can we add it?
Discussion posts and replies are publicly visible
Just adding another version on top of Shubham Version, so that it gives clear understanding to the user that new value is being added. You can modify the values in the saveInto of the pickerfield based on your requirement.PickerField:
a!localVariables( local!matches: where( a!forEach( items: ri!labels, expression: search( ri!filter, fv!item) ) ), a!dataSubset( data: if( and( contains( trim(lower(ri!identifiers)), trim(lower(ri!filter)) ) ), index( ri!identifiers, local!matches), append( touniformstring( index( { ri!identifiers }, local!matches, {} ) ), ri!filter & " (Add new)" ) ), identifiers: if( and( contains( trim(lower(ri!identifiers)), trim(lower(ri!filter)) ) ), index( ri!identifiers, local!matches), append( touniformstring( index( { ri!identifiers }, local!matches, {} ) ), ri!filter ) ) ) )
UI Preview: