• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Save all fields except for one

Save all fields except for one 10 years 8 months ago #28375

  • gregs
  • gregs's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 85
  • Thank you received: 5
Hello. We want people to submit a form so that all the form fields are stored in the database except for one field. Has anyone done something similar? The entire form result will also be emailed to us and we'd like to store each submission (but not one field). Thank you.
The administrator has disabled public write access.

Save all fields except for one 10 years 8 months ago #28376

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
A simple solution for this, would be to insert in the "PHP Scripts called on form process" a code like the following :
if (empty($invalid)){
$_POST['form']['name_of_field'] ="";
}

More information on PHP Scripts can be found here:

http://www.rsjoomla.com/support/documentation/view-article/602-php-scripts.html

How to configure emails article can be found here:

http://www.rsjoomla.com/support/documentation/view-article/74-how-to-configure-emails.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: gregs

Save all fields except for one 10 years 8 months ago #28383

  • gregs
  • gregs's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 85
  • Thank you received: 5
Simple is good - I'll play with it. Thanks a million!
The administrator has disabled public write access.

Save all fields except for one 8 years 2 months ago #36464

  • stevent
  • stevent's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Thank you received: 1
I don't think this is the solution to the question. If you alter a form field input at form process, the data sent in the email is also altered. This is fine in cases where you want alter data submitted by the user or calculate an extra field based on input.

The question is whether you could alter the data which is stored, but not the data which is sent in the emails.

Example:
A form has fields {name}, {email}, {comments}

The email sent to the admin is:
"There is a submission by {name} with {email}.
Comments: {comments}"

The data stored in the database should only be:
{submissionid}, {datesubmmitted}, {name}

The {email} and {comments} fields should be left blank.
Last Edit: 8 years 2 months ago by stevent.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!