Autocomplete multiselect widget

1
Hello Team , I’m using Auto complete Multiselect widget . In this widget we do have a option for storing the selected value . That is ‘Response’ . In response attribute we are able to see the selected value . But it is in title : key format . for Example , If I select CCT-1 , CCT-2 . Then it will come as [{"title":"CCT - 1"},{"title":"CCT - 2"}] , I’m getting the value with format . Whenever I’m trying to pass this value to somewhere I got the error . Because it is not only passing the value and it is passing the format as well . How can I trim this value as dynamic in microflow .Dynamic means If I select more than 1 value also it should only trim values . Can someone help me on this .  Thanks in advance for your valuable time.  
asked
1 answers
0

What you are getting is a JSON structure. Each thing between {} is an object there. You can easily use an Import Mapping to map that to new objects.

https://docs.mendix.com/refguide/json-structures/ 

https://docs.mendix.com/refguide/import-mappings/ 

https://docs.mendix.com/refguide/import-mapping-action/ 

So if you purely want the assigned in “title” values, I would suggest to import “response attribute”-json with an import mapping action in a microflow. And then iterate over the list of objects and build a seperate string value that only holds the title values.

answered