TOPIC:

Attachment causing form not to save to database or email 4 years 2 months ago #230764

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5957
  • Karma: 119
  • Thanks: 558
Hi,

Please navigate to Advanced properties of your form > More options > Form pieces > Before Form and set Type to Custom.
In the code area below put the following code:
echo '
<script type="application/javascript">

setInterval(checkUpload, 200);

function checkUpload() {

let upload = jQuery("#ff_elem4655").val(); // upload element ID
let sumi = jQuery("#ff_elem4661"); // Summerize field where msg should be displayed

if (upload == ""){
	sumi.html("No attachments");
} else {
	sumi.html("Yes, there is an attachment");
	}
}
</script>
';

Note : You will need to replace #ff_elem4655 , #ff_elem4661 with your elements appropriate ID's.

Regards,
Mario

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.039 seconds

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

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!