ok so I finally figured this out. After taking to heart the "You can make almost anything a prehook" statement from the Formit instructions on the wiki:
http://rtfm.modx.com/display/ADDON/FormIt.Hooks#FormIt.Hooks-AccessingtheFormItfieldsintheHook I ended up with a working solution.
This is helpful if you have multiple formit forms on your site such as "Contact" and "write a review" (ect) and want to populate them with the information from a registered users profile information. Honestly its just nice for the user experience to automatically fill out name, email and what ever else is applicable for them. Cuts out repetition for them,.. I know I appreciate it.
Really this is database 101,... I just had no idea how to do it within the confines of MODx. As flexible as it is I have no Idea about the API. YET.... ; ) Luckily the crew that put MODx together made it this flexible. (THANKS!!)
My working solution is this. (I’m assuming you have the login package and understand Formit and have them already installed)
_____________________________________________________________________________________________________________________________-
1. Start off by Calling the profile package in a prehook.
2. Create your Formit form as usual. The trick here is to make sure that you don’t name any of these form labels, error call, input id, name or values calls the same as anything collected in your Login registration. In the "value" area of the form field add in the appropriate profile call that you want to populate this field.
Below I have the example of collecting the "name" on my form. I simply named the formit field and its respective parts "dname".
<label for="dname"><strong class="red">*</strong>Contact Name:
<span class="error">[[!+fi.error.dname]]</span></label><br />
<input id="dname" name="dname" type="text" value="[[+fullname]] [[!+fi.dname]]" />
3. When you create the email Template to collect the data make sure you reference the Formit fields NOT the original Login registration names. Such as:
That’s it,... I’ve run it 30xs already with no problems. The user info is populated and comes over with the additional info in my emails. I know it’s a very specific need but I’m sure someone else out there will need it at some point. Good luck and I hope this helps someone else.