ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Custom Textbox Mask

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Message:

* HTML is ON
* Forum Code is OFF
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
anavagomez Posted - 06/28/2012 : 08:05:08
Hello,

I would like to ask for some help regarding a custom Textbox Mask.

I need to make sure that the values entered in a few textboxes are numbers in this format:

.0 or .00 or 0.0, or 0.00

I think a regular expression can be used, as a matter of fact I used one when the values are saved from a c# program I wrote and that reg exp looks like:

"^(\\d+)?(\\.\\d*)?$"

Can I use that same Reg Exp in report portal, or what the syntax would be in this case?


Thank you much for your help.

4   L A T E S T    R E P L I E S    (Newest First)
admin Posted - 06/28/2012 : 19:40:04
No, *9.9* would require to digits before the decimal point. In your case it would be the best if you just allow numbers and period like:

9^.
anavagomez Posted - 06/28/2012 : 12:01:54
will it be?

*9.9*
anavagomez Posted - 06/28/2012 : 11:54:49
thank you that helps a lot.

i just need to be able to also permit this format:

.0 or .00 or 0.0, or 0.00, or 00.00

thas was my bad, i forgot to include it on my forst post.
admin Posted - 06/28/2012 : 10:57:49
Are you talking about Textbox Mask for Data Entry form? It is not using Regular Expression but a third party library called Masked Input (http://jsfromhell.com/forms/masked-input).

Please try: *.9*

ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page