I have a form which needs to change based on user input of the form itself. With my current project, the &to parameter of eForm should change depending on which option a user chooses from a <select> in the form.
After reading through the documentation, it looks like one of the callback functions (specifically &eFormOnValidate) would help with this but I’m unclear how to use it to modify the eForm parameters itself, rather than the user-entered data.
Thanks!
Any suggestions? I’ve been trying eFormOnValidate and eFormOnBeforeMailSent but neither function will access the &to parameter. I’d like to avoid cluttering up eform.inc.php if I can help it, since this functionality will need to be duplicated (with different email addresses) for a number of forms on the website.
I saw the &mailselect option but it only seems to work if there’s a 1:1 mapping between select options and email addresses. Is there a way to assign multiple email addresses to a single option?
Thanks!