Form Help

TOPIC:

Include username and email in admin custom subject mail 2 years 4 months ago #250998

  • Topic Author
  • enetres
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 2 years 4 months ago #251016

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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 2 years 3 months ago #251121

  • Topic Author
  • enetres
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 2 years 3 months ago #251122

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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.053 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!