So, apparently, the trick is to not try to map your link table using $fromform->id, when you've only just inserted a new record and the form wouldn't have known what that ID was. Doh.
General developer forum
Multiselect - Ctrl-a on a new form doesn't register
This discussion has been locked so you can no longer reply to it.