Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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
I tried to mimic this scenarioInterface -
a!localVariables( local!countries: { "USA", "India", "Canada" }, local!selected: null, a!pickerFieldCustom( label: "Country", suggestFunction: rule!POC_CountrySuggest( filter: _, labels: local!countries, identifiers: local!countries ), value: local!selected, saveInto: local!selected, selectedLabels: local!selected ) )
a!localVariables( local!matches: where(search(ri!filter, ri!labels)), if( length(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 ) ) )
Once the new country i am trying to add then i receive "picker field label length error".
Have you tried the above code as-is to understand how it works? Are you getting an issue with my exact code?
I understand your code.I try to map with record type to save the new value or saved one value.then in picker field the first alphabet is only visible.For example, add "xyz" and once select then "x" is visible.Not sure why this is happening.
For record type, use selectedLabels: local!selected.name.For better understandign can you please share full code.