as previously mention LookupDispatchAction is your friend or another method used is by changing the form submit target with javascript depending on where you want the data to be sent
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, that will fit in a stocking