CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Imput mask beginning with sing

Print topic Send  topic

Author Message
rikk

Posts: 5
Posted: 12/06/2010, 8:32 AM

Hi!

Im need to create an Input Mask which allow beginnig with "+" sign or "-" sign ( both are possible) and continue with some numbers.

Is it possible??

Thanks in advance.
View profile  Send private message
saseow

Posts: 744
Posted: 12/07/2010, 12:29 AM

I am not sure if you want decimals or not but you can try something like this for integers:

^[-]?[1-9]+[0-9]*$

This will validate both positive and negative integers with a minus or plus sign at the start.
View profile  Send private message
rikk

Posts: 5
Posted: 12/07/2010, 10:38 AM

Thanks for the answer, this is fine for the validation, but Im would like configure one Input Mask.
In Events "Client->On Load->Validate Entry" is offered a possibility create a mask, for example "(000) 000-0000" for phone number input .
Im need something alike as "+0000.00" or "-0000.00", but which allow input "+"sign or "-" sign as the first character and then the numbers "0000.00".
Are you now how is it possible?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.