• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can you autofill Name and E-mail in form from User

Can you autofill Name and E-mail in form from User 13 years 2 months ago #16565

It it possible to set the RSForm to automatically fill in the Name and email of a form with the information from a registered user. We basically want a user to log in then fill out a form. The form would automatically submit using the user account information.

Brook
The administrator has disabled public write access.

Re: Can you autofill Name and E-mail in form from User 13 years 1 month ago #16583

  • royce
  • royce's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 52
  • Thank you received: 5
The administrator has disabled public write access.
The following user(s) said Thank You: maartenvz

Can i autofill page title in form 11 years 5 months ago #25591

hi, first of all i'm sorry for my bad english.

i'm using rsform pro, and i need to autofill a textbox on my form with page title., how can do it?

tnx
The administrator has disabled public write access.

Re: Can you autofill Name and E-mail in form from User 10 years 2 months ago #30389

  • benoit1
  • benoit1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi there, I have fallowed the link and added the code to the appropriate fields...

Stuff like name and email are easy, I'm using this code :

//<code>
$user = JFactory::getUser();
return $user->get('name');
//</code>

But I used RS Form Pro for user registration so I have created extra fields when they register and I would like them to autofill when the user is already login...So I guess I need to use this code here :

//<code>
$db = JFactory::getDbo();
$db->setQuery("SELECT `column_name` FROM `#__table_name` WHERE `column_name`='value' LIMIT 1");
return $db->loadResult();
//</code>

The problem is I have no idea where to fetch the info I need to place in there...I have browsed the database and I don't know where to get it...

Please help...

Thanks...

Ben
The administrator has disabled public write access.

Re: Can you autofill Name and E-mail in form from User 10 years 2 months ago #30395

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
@ rabisoftco: Please refer to the following article:

www.rsjoomla.com/support/documentation/v...-the-page-title.html

@ benoit1: RSForm!Pro stores its submissions in the 'dbprefix_rsform_submission_values' table (where 'dbprefix' needs to be replaced with your database's actual prefix).
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Can you autofill Name and E-mail in form from User 9 years 10 months ago #31636

Thanks for the contributions to the thread already. I previously had this function working perfectly, but now i've started a new site with Joomla 3 and instead of the form autofilling with user details in the front end, I am getting a blank field, and a 'php code' label in the backend (see attached picture).

https://www.flickr.com/photos/134393444@N02/shares/bcJH64

Could anyone help me identify what has changed to cause this behaviour?

I'm using the same code as is given above:
//<code>
$user = JFactory::getUser();
return $user->get('name');
//</code>

Many thanks in advance.
The administrator has disabled public write access.

Can you autofill Name and E-mail in form from User 9 years 10 months ago #31640

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Hello,

The PHP label in the backend is normal behavior. As for your frontend issue- I just tested this functionality (using latest RSForm!Pro version and latest Joomla! version 3.4.2) and is working. Make sure you are logged in when accessing the form.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: edward.palmer

Can you autofill Name and E-mail in form from User 9 years 10 months ago #31643

Thank you. You're absolutely right and it is working as expected now
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!