Code to control recipients of notifications in LO Surveys

Options
I know code can be added in survey captions.

I know notifications can be added in step 1 #10 and step 2/configure notifcations) but no logic other than 1 question's response can be used.


i want to do more complex logic than just the answer to 1 question.


Is there a way to programmatically control the notification recipients inside the form itself? 



A bit of a stretch, but I figured I'd ask.


Thanks!
Tagged:

Comments

  • Dan Kachoogian:

    [...] Is there a way to programmatically control the notification recipients inside the form itself? [...]

    That information isn't tracked in the form the user fills out, and a quick look at the API tells me it can't be manipulated through that, either.

    You might be able to do something very fancy by setting up your own form which swaps out one survey for another depending on prior answers. You'd set up two (or more) surveys each with their own notification schema; you'd then write a form in plain HTML, wherein you'd ask whichever questions you need to figure out which form is needed. If those answers need to be captured, you can write a bit of code which populates hidden fields in the appropriate survey with the answers provided in your custom form, so those answers are captured as part of that survey. (Any questions specific to a single survey could, of course, be visible on that survey.)

    It would be a chore, but if it would save a fair bit of headache, that's what I'd do.

Categories