TOPIC:

Insert fields 7 years 5 months ago #116193

  • Topic Author
  • JWD
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
I like to keep the Joomla registration form .
Then I like to add the full name and e-mail adress from that registration to a content data storage with other personel data of the user. Can that be done?

Is it possible to add a google map with a location to a form?

Please Log in or Create an account to join the conversation.

Insert fields 7 years 5 months ago #116266

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1077
Hi,

you can populate any form element with the current user data. For example, to get the name and email from this current user, you can add this code into the 'Default Value' of the Element in the Element options:

Name:
<?php $user = JFactory::getUser(); return "$user->name"; ?>
Username:
<?php $user1 =& JFactory::getUser(); return $user1->username; ?>
Email:
<?php $user3 = JFactory::getUser(); return "$user->email"; ?>

and save.

You can turn off this element (for example a simple text element) to dont show it in the frontend, but it will be submited with the whole form.

Please Log in or Create an account to join the conversation.

Insert fields 7 years 4 months ago #116743

  • Topic Author
  • JWD
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
I tried email, but no succes I donot get the email adress of the member. The view is set to members only

Attachments:

Please Log in or Create an account to join the conversation.

Insert fields 7 years 4 months ago #116842

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1077
Oh, sorry, i was wrong, i was thinking about Breezing Forms instead CB...

Go to the editable template tab, and insert a code like this:
$items["new"]["value"] = JFactory::getUser()->get('username');

where:
new - is the name of the field label
username - takes the current user name.

Let me know if it works now!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.059 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!