I've got an existing service based site that uses Sprout Forms to request quotes. The quote form lives on all services pages in a sidebar (and the submissions have an entries field keeping track of which service the submission came from).
I've just added some fields into the services entry to allow them to override where the quote form goes.
Now I need to make this work. I have a plugin listening for sproutForms.onBeforeSaveEntry events, and when it receives them I'm wanting it to adjust where it sends the notification to.
Is this possible? Is it possible to modify notificationRecipients on an individual event or is this against the form (and in either case how do I do this if I have a SproutForms_OnBeforeSaveEntryEvent)?
In either case (as I can live with the former) a code example would be amazing.