TOPIC:

Element is not showing 1 month 4 weeks ago #247235

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

no, because ff_htmlvaluenotempty check is HTML editor element is empty or not.
But you can use this:
go to your element->Properties->Validation->check custom->Create code framework and put this:
function ff_NAMEOFELEMENT_validation(element, message)
{
     if (element.value.trim() !='') return ''; 
    if (message=='') message = "Please enter "+element.name+".\n";
    ff_validationFocus(element.name);
    return message;
} // ff_NAMEOFELEMENT_validation

Please replace NAMEOFELEMENT with name of element in which you want this validation (not title)

P.S: you don't bother me, ask whatever you want :)

Let me know if it works for you

Regards,
Tihana

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

Element is not showing 1 month 3 weeks ago #247343

  • moodogtech
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 44
  • Thanks: 0
Can you please check to ensure I have validation setup properly for all fields in the form name Submit News. I presume only required fields require validation but I just want to be sure before I send to client for review because they will need to use these recommendations for all of their forms.

Thank you again.

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

Element is not showing 1 month 3 weeks ago #247363

  • lena11d
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 5
  • Thanks: 0
Hello:

Is there a way to retrieve the submissions that went through when the form was not properly working (besides the backend in the form records as the info is missing there )? Or did they not register at all?

Thank you
Lena

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

Element is not showing 1 month 3 weeks ago #247372

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

@moodogtech
I tested your form, everything is ok, validations are set well and the form is sent only when all fields are filled :)

@lena11d
for example, if you set correct validation on your form, form is sent only when all fields are filled with the appropriate values, otherwise the form is not sent

Regards,
Tihana

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

Element is not showing 1 month 3 weeks ago #247607

  • moodogtech
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 44
  • Thanks: 0
Please check the following form:

Form name: summertimeFunForm

Validation looks correct on my end but latest form record did not display Full Name, Email or Phone number elements even though the information was submitted.

function ff_NAMEOFELEMENT_validation(element, message)
{
if (element.value.trim() !='') return '';
if (message=='') message = "Please enter "+element.name+".\n";
ff_validationFocus(element.name);
return message;
} // ff_NAMEOFELEMENT_validation

Full Name element replace NAMEOFELEMENT with summertimeFunFormName
Email element replace NAMEOFELEMENT with summertimeFunFormEmail
Phone element replace NAMEOFELEMENT with summertimeFunFormPhone

function ff_summertimeFunFormName_validation(element, message)
{
if (element.value.trim() !='') return '';
if (message=='') message = "Please enter "+element.name+".\n";
ff_validationFocus(element.name);
return message;
} // ff_summertimeFunFormName_validation

This looks correct so I am surprised that the Full Name record was not stored in the database.

Please help resolve this. Thank you in advance.
Attachments:

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

Element is not showing 1 month 3 weeks ago #247624

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 1707
  • Karma: 3
  • Thanks: 154
Hi,

solved!
I added new validation for full name and phone. :)

Regards,
Tihana

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

Moderators: ForumSupport
Time to create page: 0.054 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!