TOPIC:

Delete entries in the database 2 years 5 months ago #226311

  • Topic Author
  • mlodoch
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 1
Is it possible to send user input only by e-mail and not to save it in the database?

Or can I have entries in the database automatically deleted?

Actually, I would like the form to be sent by email and no data to be stored on the server.

Is that possible?
Thank You

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

Delete entries in the database 2 years 5 months ago #226337

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

yes, there is an option in the form advanced settings. Click on your form > Advanced tab > More options and on the Setting tab, you'll see an option Log to database. Just set it to no and you're good to go.

Take a look at this also crosstec.org/en/blog/927-how-to-make-you...-comply-to-gdpr.html

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

Delete entries in the database 2 years 2 months ago #229366

  • toonetcreation
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 27
  • Thanks: 0
Hi,

I have a similar request.
In fact, I want to log entries into database but how can I delete automatically entries older than 1 year ?

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

Delete entries in the database 2 years 2 months ago #229381

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Hey,

currently, there is no automated way of doing it. You can create a simple PHP script and run it daily with a CRON job (ask your hosting to assist you if necessary).

Before proceeding, make a backup of your database.

The code for the PHP file would go something like:
<?php
$db = JFactory::getDBO();
$db->setQuery("Select id From #__facileforms_records Where submitted < DATE_SUB(NOW(), INTERVAL 1 YEAR)");
$ids = $db->loadColumn();

$id = implode("', '", $ids);
$db->setQuery("Delete From #__facileforms_records Where id In ('$id')");
$db->execute();
$db->setQuery("Delete From #__facileforms_subrecords Where record In ('$id')");
$db->execute();
?>

The code first gets a list of records' id's that were submitted over a year ago, then you have to implode it to get a string and then you delete from _records and _subrecords tables all the entries that have that id.

Let me know if it works.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!
The following user(s) said Thank You: markboos

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

Delete entries in the database 2 years 2 months ago #229385

  • toonetcreation
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 27
  • Thanks: 0
ok thanks I will test it and come back to you if necessary.

thanks

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

Delete entries in the database 2 years 2 months ago #229388

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 265
Sure, but let me say it again, backup your database before trying anything. Or better yet, do it on a local installation.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

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

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