What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to enable Auto Fill on my Joomla website

    Asked by Charles on March 04, 2012 at 08:01 AM

    I have used jotform for a few years and I am very happy, I have a joomla site with Community builder, my question is it possible to have a form prefill based off user name from joomla to the jotfom that way the user dosent have to put in info twice.

    JotForm name joomla autofill
  • Profile Image

    Answered by moonzkie on March 04, 2012 at 08:48 AM

    I'm not sure if this is possible. Nevertheless, the idea is a good one I'm sure it will be forwarded to the developers.

  • Profile Image

    Answered by fantasy1 on March 04, 2012 at 09:02 AM

    There are plugin's available from Community Builder as a extension to prefill info into a article, but I have tried them and they dont work with jotform, it would be nice it would be nice to prefill information already collected about a  user.

  • Profile Image
    JotForm Support

    Answered by liyam on March 04, 2012 at 09:53 AM

    Can you try editing a page and checking the result of this code:
    <?php var_dump($my); ?>  

    If you can identify which one of those keys in the array returns the username, then you can try using URL parameters to auto-fill the field for the username.

    I'll try to install and see for myself the specific variable returned later.

  • Profile Image

    Answered by fantasy1 on March 04, 2012 at 01:31 PM

    Not sure how to do that...my site is www.fantasydirtracing.com

  • Profile Image
    JotForm Support

    Answered by liyam on March 05, 2012 at 07:25 AM

    This process is a bit tricky as this requires a bit of PHP programming knowledge.  To be able to set and use the session username variable in Joomla, you will need to use this code:

    $user =& JFactory::getUser();

    And this is the variable to call the username:


    Your complete code:

    $user =& JFactory::getUser();

    Now you have the variable $user->username, you can then try doing some URL parameters on your form.  But first, we need to find out how you embedded your code in your site.  If you added your form as an article, you will need to use text editors such as Jumi or Sourcerer to be able to use PHP in your article. 

    There are a number of ways how to use PHP code depending on how you inserted your form in your Joomla side.  Can you share with us some bit of details?  Currently, I could not find as well your form in your website.

    We'll wait for your response.


  • Profile Image

    Answered by fantasy1 on March 06, 2012 at 07:16 PM

    I put in the forms using the Joomla code that looks like this <script type="text/javascript" src="//form.jotform.com/jsform/90495624126"></script>...

  • Profile Image

    Answered by fantasy1 on March 06, 2012 at 07:18 PM
  • Profile Image

    Answered by edz_kgs on March 06, 2012 at 10:43 PM

    @ fantasy1,

    I believe the editing is needed to be done within Joomla page. Do you have a personal developer who helps you on this type of tweaks? If not, let see if Jotform admin supports can help you sort this thing out.


  • Profile Image
    JotForm Support

    Answered by liyam on March 06, 2012 at 10:51 PM

    Thank you for the response fantasy1.  Let's take this one step at a time :)

    If you don't have Jumi or Sourcerer text editor installed, I recommend that you install Jumi or Sourcerer WYSIWYG editor for your Joomla so that you'll be able to run PHP codes in it.

    Once you're done installing it, we can continue with getting the username variable and have it assigned to one of your form's text fields.

  • Profile Image

    Answered by silkmedia on October 21, 2016 at 05:00 AM

    As fantasy1 mentions the recommended method to add to a joomla site is using the script

    How can the autofill be done using the js?

    Thanks in advance!

  • Profile Image
    JotForm Support

    Answered by Nik_C on October 21, 2016 at 06:31 AM


    I opened a separate thread for you to avoid any confusion. You can find it here.

    Please tend to open new threads for each question you have so we can attend them more quickly.

    Thank you!