TOPIC:

Prevent certain types of entry in form fields 6 months 3 weeks ago #258811

  • Topic Author
  • snappysites
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 48
  • Thanks: 0
Hi, first of all, even though I purchased a lifetime membership last year, I find myself only able to access the free forums....

Next, I need to know the following:

1. How do I prevent urls being entered/pasted into text and textarea fields?

2. Bots are inserting dates as text into date picker fields. How do I prevent this?

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

Prevent certain types of entry in form fields 6 months 3 weeks ago #258812

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

I will check it and come back to you

Also,

1)Please download->unzip and install it

File Attachment:

File Name: avoidLinks...5-13.zip
File Size:1 KB

after installation the code is in manage Script with name ff_avoidLinks

After that go to textfield/textarea->properties->Validation->check Library and from library select ff_avoidLinks

2) are you using responsive calendar or calendar, which date format are you using?
I need this info that I can make a validation code, and send it to you

Regards,
Tihana
Attachments:

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

Last edit: Post by tihana.krivic.

Prevent certain types of entry in form fields 6 months 3 weeks ago #258822

  • Topic Author
  • snappysites
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 48
  • Thanks: 0
Thanks for the quick response, Tihana!

I'm using responsive calendar, format dd-mm-yyyy

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

Last edit: Post by snappysites. Reason: edited

Prevent certain types of entry in form fields 6 months 3 weeks ago #258823

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

which format:
dd-mm-yyyy or any other?

Regards,
Tihana

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

Prevent certain types of entry in form fields 6 months 3 weeks ago #258824

  • Topic Author
  • snappysites
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 48
  • Thanks: 0
dd-mm-yyyy

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

Prevent certain types of entry in form fields 6 months 3 weeks ago #258826

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

go to your calendar->Propeties->Validation->check Custom and put this:
function ff_nameofcalendar_validation(element, message)
{
     var pattern1=/[A-Za-z]/;
    var pattern =  /[0-3][0-9]\-(0|1)[0-9]\-(19|20)[0-9]{2}$/;
   if(pattern.test(element.value) && !pattern1.test(element.value)) return '';
        if (message=='') message = element.name+" faild in my test.\n"
        ff_validationFocus(element.name);
        return message;
} // ff_nameofcalendar_validation
Please repalace nameofcalendar with name for your responsive calendar (not title).

This will prevent text in calendar input

Let me know if you need more help

Regards,
Tihana

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

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