TOPIC:

Add username to field 3 weeks 4 hours ago #277500

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

are you on content builde only?

Regards,
Tihana

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

Add username to field 3 weeks 4 hours ago #277501

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
yes, sorry!

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

Add username to field 3 weeks 4 hours ago #277502

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

Go to Content Builder -> Views and select your view. Then go to the Editable prepare of that tab and below the two commented lines, add the code from above:
$items["test"]["value"] = JFactory::getUser()->username;
Please replace test with name of your field (not title)

Regards,
Tihana

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

Add username to field 3 weeks 4 hours ago #277503

  • Topic Author
  • ducman
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 110
  • Thanks: 0
Now yes!! Thank you very much for your help Tihana...

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

Add username to field 3 weeks 4 hours ago #277505

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

np, anytime :)

If you need anything else, feel free to ask

Regards,
Tihana

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

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