TOPIC:

Add username to field 3 weeks 4 hours ago #277493

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Good afternoon comrades, can you do that? It would be to create a text field called, for example, "user" and automatically fill in the logged in username (in joomla). It's possible?

Thank you very much for your help!!

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

Add username to field 3 weeks 4 hours ago #277494

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11156
  • Karma: 3
  • Thanks: 730
Hi,

please check this:
crosstec.org/en/support/online-documenta...and-classicmode.html

Here is explained how to get this, but don't forget user should be logged in

Regards,
Tihana

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

Add username to field 3 weeks 4 hours ago #277495

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Thanks, but using CB, where do I paste the code? in the PHP section of the text field?

Thanks again!!

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

Add username to field 3 weeks 4 hours ago #277496

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11156
  • Karma: 3
  • Thanks: 730
Hi,

please go to CB->Views->View->and in item wrap code of field add:
<?php $value = JFactory::getUser()->get('username'); ?>

Regards,
Tihana

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

Add username to field 3 weeks 4 hours ago #277497

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Thanks, but it doesn't work... I've tried pasting it also in text--> action code // int code and it doesn't work either.

Cheers!

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

Add username to field 3 weeks 4 hours ago #277498

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
If I paste it in the item wrap code, the user does appear, but in the list view, it is not saved in the text field.

Cheers

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.064 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!