Multiple select options allow custom logic
I've already asked this one but cannot find it anymore, so here I am asking again with different topic.
Is there any plan this select components accepts all my logic and render the item correctly?
Base on my below code, If I used like this the name is displaying correctly in the select (chip...let call it chip) but If i try to use
primaryAccount()
then it cannot display name, only ID is displaying in the chip
But I really need to use my custom logic (scope) in the options..
Any other work around to overcome and use my logic?
Sorry for bad english and thanks in advance
3 Replies
In the first image, the name "mohd mehndi" is already attached to other field so it should not come, If I apply my logic then it coming like 2nd image, logic is working but it display ID instead of name in the chip
This problem comes only in
multiple()
in single select everything is workingYou probably need to use
getOptionLabelsUsing()
as well since you’re using multiple. (Labels is plural).
Yes, you are correct, "s" is important... and it's working.. thank you