Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Url field

Url field 7 months 1 week ago #173596


  • Posts:9
  • macweb's Avatar
  • macweb
  • Fresh Boarder
  • Offline
  • Karma: 0
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
The administrator has disabled public write access.

Url field 7 months 1 week ago #173599


  • Posts:4054 Thank you received: 325
  • tomeperica's Avatar
  • tomeperica
  • Administrator
  • Offline
  • Karma: 93
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
Attachments:
Regards,
Tome
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
=========================================
The administrator has disabled public write access.

Url field 7 months 1 week ago #173623


  • Posts:9
  • macweb's Avatar
  • macweb
  • Fresh Boarder
  • Offline
  • Karma: 0
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
Last Edit: 7 months 1 week ago by macweb.
The administrator has disabled public write access.

Url field 7 months 1 week ago #173624


  • Posts:4054 Thank you received: 325
  • tomeperica's Avatar
  • tomeperica
  • Administrator
  • Offline
  • Karma: 93
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
=========================================
The administrator has disabled public write access.

Url field 7 months 1 week ago #173626


  • Posts:9
  • macweb's Avatar
  • macweb
  • Fresh Boarder
  • Offline
  • Karma: 0
Yes I have other issue in this post.
Do you have a solution for the recaptcha language ?
Thanks in advance.
The administrator has disabled public write access.

Url field 7 months 1 week ago #173634


  • Posts:4054 Thank you received: 325
  • tomeperica's Avatar
  • tomeperica
  • Administrator
  • Offline
  • Karma: 93
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
=========================================
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ForumSupport, pedro81, tomeperica
Time to create page: 0.074 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 70!

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.