Hey ebbomuc2,
I think this should be possible!
I’ve had a look around and found a link to an old SuiteCRM forum post that details similar behaviour, with snippets of code:
Hopefully that’s something along the lines of what you’re looking for?