I have a user form in which I have to fill all information related to a user. I have only the email address, and I'd like all other fields to be filled when I enter the email address by using the onblur event. So I have to create a module that is called after I have filled email on the form. Via the module I will fetch all other field data.

  • Are the users that are you inserting their email addresses already registered at the site? Do you mean that you need to pull their information form their profile fields stored already in the database? – W.M. Apr 7 '16 at 19:23
  • yes,i got my point. – meena Apr 8 '16 at 9:13

You just need to AJAXify the form. Take a look at this article for more info on Drupal AJAX forms. To actually look up the user info you can just use the user_load_by_mail() function (more info).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.