I have a use case where I want to alter the select form by creating a "Add" button. The callback for that button creates an entity and relation item but it doesn't create the item into the list in UI because I can't re-use the JS functions at all.

I'm stuck in this at the moment and I would like to get some help on this. How you think this should be done? Does the relation-select.js need a rewrite to do that?

Screenshot tells it all:
Description in a picture

CommentFileSizeAuthor
00000071.png47.29 KBimiksu

Comments

steveoliver’s picture

Status: Active » Closed (works as designed)

iMiksu, If I understand you correctly, new rows are already added when you select up to the limit of endpoints possible for that relation. By looking at your screenshot, I imagine you have selected 3 items after Searching. Let me know if I missed something.