Form Help

TOPIC:

Include username and email in admin custom subject mail 1 week 1 day ago #250998

  • Topic Author
  • enetres
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Greetings.

I'm trying to include username and email on admin subject mail but i'm facing 2 problems:

1. using " New question from {BF_SUBMITTERFULLNAME:value} "
the email is sent without converting the value,
however, using the same code inside the mail body will convert succesfully the code to the current user full name.

2. I checked the codes but there isn't any for user e-mail. Is there a way to find and use it ?


--BreezingForms 1.9.1 Stable (build 941)--
-- P.H.P. 7.4.12 --
-- Joomla! 3.9.8 --

Thanks in advance.
Attachments:

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

Last edit: Post by enetres.

Include username and email in admin custom subject mail 5 days 23 hours ago #251016

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

1) you can add hidden element to your form with name username for example.
In this element->Properties->Value add :
<?php return JFactory::getUser()->get('username',''); ?>
Then in your form->Advanced->Admin Email->Custom email subject add:
{username}
where username if name of your hidden element

2) if you want to show email in custom subject then add textfield element to your form and name it email -> in this element user will enter his email
Then in Custom subject add
{email}
where email is name of email element (not title)

Hope this helps

Regards,
Tihana

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

Include username and email in admin custom subject mail 3 days 17 hours ago #251121

  • Topic Author
  • enetres
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Thank you for your quick reply!

I think , using hidden elements requesting php usermane and email work since the user is already registered.

:)

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

Include username and email in admin custom subject mail 3 days 17 hours ago #251122

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

yep.
For email just add textfield as email field->and then add name of this field in Custom Email Subject {email} for example.
When someone enters email in emails field->as subject should appears email address.
But for username user should be registered as you said :)

Regards,
Tihana

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

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