Url field

  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • 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: 6329
  • Karma: 160
  • Thank you received: 632

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
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
#173599
Attachments:
  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • 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: 6329
  • Karma: 160
  • Thank you received: 632

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
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
#173624
  • macweb
  • macweb's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • 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: 6329
  • Karma: 160
  • Thank you received: 632

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
==========================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
#173634
Moderators: ForumSupporttomeperica
Time to create page: 0.069 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

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

All Extensions Subscription

Special Offer! Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for only 55!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions 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 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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here