I think this is similar to my request, which I hope someone will be able to help me with.
I have looked at
http://wiki.modxcms.com/index.php/Populate_eform_with_dynamic_data and think that the &eFormOnBeforeFormParse=`populateMailForm` parameter is a good starting point, but before I continue let me post the request from my client:
Would it be possible to have the recipient field automatically select someone from the drop down when it is following a link.
Currently our eForm looks like
http://www.oldsalem.org/index.php?id=82 which is just great.
If however they click on Jennifer Bean Bower at
http://www.oldsalem.org/index.php?id=121I would her to already be selected in the eForm to save the user having to look for the correct person.
So, could I pass an extra variable in the Jennifer Bean Bower link, maybe
http://www.oldsalem.org/index.php?id=82&selected=JenniferBeanBower
Then I presume I would need my &eFormOnBeforeFormParse snippet to check if that variable is available, if it doesnt exist then use the select fields as they are, otherwise use somewhere in the snippet I will have a switch case or something like that.
I’m not even sure if I can add an extra parameter to the URL like that, or how on earth I would check it from the target but I think it may be a start.
Has anyone a better idea, or can point me in the right direction using this technique if it sounds like a good solution.
I would be grateful for any assistance and pointers.
Thanks,
Taff