TOPIC:

Code in "Pieces>before form>custom" is not stored 8 months 1 week ago #252582

  • Topic Author
  • desoxire
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
Hello,
I tried to create a form, which can only be submitted once by a registered user. I tried to do this as described inthis post: crosstec.org/en/support/online-documenta...-of-submissions.html

But when I insert this code and click on "save" the page reloads and the code is not there anymore.

$user = JFactory::getUser();
$db = JFactory::getDbo();
$db->setQuery('SELECT COUNT(id) FROM #__facileforms_records WHERE user_id ="'.$user->id.'" AND form = 1');
$db->loadResult();
if($db->loadResult() > 0){
header("Location: /error");
exit;

Do you have an idea, what may cause this?

Thank you for your help!

---

Joomla Version 3.9.23
BreezingForms 1.9.1 Stable (build 941)
PHP 7.3

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

Code in "Pieces>before form>custom" is not stored 8 months 1 week ago #252586

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 664
  • Karma: 4
  • Thanks: 112
Hello,

Try this tutorial , maybe it will be more suitable?

Regards,
Eddy

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

Last edit: Post by Eddy.vh.
  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.039 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!