Url field

  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

macweb created the topic: Url field

Hi,
I´ve search the forum and I did not find anything about this.
How do we make a url field and validate it ?
I create a texfield for that but how do I validate the field ?
Thanks in advance
#173596
  • Posts: 4764
  • Karma: 119
  • Thank you received: 398

tomeperica replied the topic: Url field

Hello there,

I have made a quick example for your request. Pls find attached form below, download it, unzip and install via package installer. Code that is used is in Validation section of URL element in the form:
function ff_link_validation(element, message)
{
  var pattern = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/;
    if (!pattern.test(element.value)){       
            if (message == '')
                message = element.name + " faild in my test.\n"
            ff_validationFocus(element.name);
            return message;           
        }
    return '';
} // ff_link_validation

Let us know the result.

Regards,
Tome

Regards,
Tome
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
=========================================
#173599
Attachments:
  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

macweb replied the topic: Url field

Hi,
Many thanks it worked perfectly.
You have a amazing fast support.
I also have update this post . I still can´t get a solution.
Thanks
#173623
  • Posts: 4764
  • Karma: 119
  • Thank you received: 398

tomeperica replied the topic: Url field

Great,

I am glad that worked.

Let us know if you need further help.

Regards,
Tome

Regards,
Tome
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
=========================================
#173624
  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0

macweb replied the topic: Url field

Yes I have other issue in this post .
Do you have a solution for the recaptcha language ?
Thanks in advance.
#173626
  • Posts: 4764
  • Karma: 119
  • Thank you received: 398

tomeperica replied the topic: Url field

Hey,

we are answering you here: crosstec.org/en/forums/18-languages/1083....html?start=6#173564

Regards,
Tome

Regards,
Tome
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
=========================================
#173634
Moderators: ForumSupporttomeperica
Time to create page: 0.084 seconds

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

New extension AnalyticsAnywhere released!

Track website visitors no matter if ad blockers are enabled! Check it out!

Lifetime Subscription

Special Offer! Get lifetime access to all of our current and future products and 2 years of professional support -- 149 for only 90!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates   this means, by purchasing a Lifetime Subscription you'll have it all covered!

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 1-Year or Lifetime 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!

Pro Support Renewal Plans

If you just need professional support and no further access to downloads or simply want or need to renew professional support, you may choose between various support plans from here.