<p><p>Thanks for your reply, Victor. Sorry for the misuse of the terminology. </p><p> </p><p>I have two forms relevant to this question:</p><p>1) Registrations has the ~50 records whose fields include a registrant's email address, first and last name, and other information about the registrant.</p><p>2) In the second form, the user enters their email address in a Single Line text Lookup field that searches in Registrations for their email address. Six other fields fetch last name, first name, club, etc, etc related to that email address from Registrations. It is after I enter the email address in the second form and press enter, the fetch to auto populate the name, club, etc fields begins (which takes >10 seconds). </p><p> </p><p>I appreciate your help. Joe</p></p></p>
You still haven't answered my question. "What kind of lookup field are you using?"
How are you retrieving the values of the six other fields?
Why are you forcing users to enter the email address? When a user is logged into WordPress, their WP User Object is available in memory, which means you don't have to look up anything. Formidable provides shortcodes that allow you populate default field values with user details without doing any lookups.
Your design and process is not making sense. Please describe your process and why you've decided to lookup values without using built-in functionality.
A thought in addition to Victor's question is something to try. Temporarily change your form so that only one field is automatically filled in, instead of 10 and see how that affects performance. Try it with 2, 5, 10, and see what happens.
Thanks, Rob.
I am not a coder, yet, but I have a feeling I'll need to become one before long.
I definitely see the value in testing with a single lookup value to resolve, timing the result, and see if it's a function of the number of fields' values I need it to fetch.
Let me know if you decide to go this other, coding route. This is one of my specialties and when folks hire me to do such projects, I always leave them with a shared Google doc explicitly detailing my work so that they can do it themselves the next time.
It shouldn't take 10-seconds to retrieve those fields especially with just 50-records in the DB. Something may be wrong with your server, but that's impossible to know without hands-on testing. I would follow what Rob suggests. Test with 1-field and if it still takes a long time, try jQuery/AJAX. It should make things much faster.
Please login or Register to submit your answer