Loading...
 
Skip to main content

Provide example for jquery regex url that validates the condition in tracker field: positive number with or without decimals

Status
Closed
Subject
Provide example for jquery regex url that validates the condition in tracker field: positive number with or without decimals
Version
12.x
Category
  • Documentation (or Advocacy)
  • Feature request
  • Support request
Feature
Edit interface (UI)
Trackers
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(1)
Description

Provide example for jquery regex url that validates the condition in tracker field: positive number with or without decimals

I followed the example from here: http://www.sitepoint.com/jquery-basic-regex-selector-examples/ (plus from many other internet sites suggesting regex's for that condition with no luck) 😑

It seems to work in Tiki14 with this validation regex:

Copy to clipboard
^\+?[0-9]*\.?[0-9]+$


But it didn't work for me in Tiki12. I'll try to reproduce again in a Tiki 12 show.t.o instance.
to reproduce, come here:
http://xavi-9794-5641.show.tikiwiki.org/tiki-index.php?page=Bug_Tracker

and type 12 at the field Number: you'll get "Provide a positive number with or without decimals" and you shouldn't

Importance
4
Easy to solve?
4
Priority
16
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5641
Created
Wednesday 22 April, 2015 15:15:24 UTC
by Xavier de Pedro
LastModif
Friday 24 April, 2015 14:50:13 UTC


Show PHP error messages