Retrieve automatically user/username in forms embedded in joomla

  • Profile Image
    yvesfb
    Asked on January 15, 2014 at 01:27 PM

    Hi,

    I would like to embed a form in a page on a joomla webpage only accessible for logged in users.

    How can I automatically get the username input in the form when people fill in the form?

    (and, if possible, the email address corresponding to the username).

    Thanks

    yves

  • Profile Image
    EliezerN
    Answered on January 15, 2014 at 02:56 PM

    Hi,

    Creating log in forms is not allowed in Jotform, we do not have log in features so that you can request username and passwords. Such action would cause the suspension of your account as creating log in forms is against our terms of use, so we do not recommend you to do it.

    By the way, here is how to embed a form to Joomla Adding form to Joomla

    Inform us if you need further assistance with this inquiry or kindly open new threads for unrelated questions.

    Thanks

  • Profile Image
    yvesfb
    Answered on January 15, 2014 at 03:01 PM

    Hi,

    Thanks, but I don't want to ask the user to log in.

    The user would in fact already be logged in before accessing the form. I simply would like to connect the data the user is inputing to the user without having to ask again the user to fill in his/her name.

     

    Best

    yves

  • Profile Image
    jedcadorna
    Answered on January 15, 2014 at 04:17 PM

    Hi Yves,

    I believe you want to capture the Username of your website member automatically when they fill out your form? With custom coding and using your form source that would be possible I was thinking of fetching the data in your database. The problem with this is this will require programming skills to achieve it like PHP and MySQL program. Honestly I haven't tried this and I'm not sure if this is an easy task. Jotform can only insert data into your database but i'm not sure if it can pull out to get the username info.