Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

dissallow / ban decimal (period) character in text field in Livecycle

Posted on 2008-10-03
9
693 Views
Last Modified: 2009-01-21
Hi there,

I have a text field in Livecycle and i want to disallow any alphabetical characters (i must keep it a text field).

For the validation pattern I have used the "999999999" system but decimals are still permitted.

How can i parse through the field at validation and stop decimals getting through, or stop being entered entirely?

Regards,

Darren
0
Comment
Question by:SWS001
  • 5
  • 4
9 Comments
 

Author Comment

by:SWS001
ID: 22632163
I suppose I should have said also that only numerical values are permitted.

It must remain a text field though.

Regards,

Darren
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 22632931
Are you getting a validation error message when you tab out of the text field? Try using the same pattern for Display, validation, entry and data.
0
 

Author Comment

by:SWS001
ID: 22633204
eh?

I just want to be able to stop people being able to enter a decimal, as it appears even though the "999.." pattern is used to say "only numbers please" it's still counting the decimal stop as a number.

The decimal needs to be removed or not allowed.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 22633560
Yes, I understand. And when I use the same pattern "text{9999}" for Display, Validation, Edit and Data, I get a validation error when I enter a decimal point. It only allows digits. So, to me this falls into the category of "not allowed".
0
 

Author Comment

by:SWS001
ID: 22633621
"text{9999}" ? I thought to only allow number it was just the characters 99999 you used.

I'll try out your method now
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 22633636
Which version of Designer are you using? I suspect it's not the latest (8.2).
0
 

Author Comment

by:SWS001
ID: 22633796
version 8.0

It works but unfortunatley breaks the other field.

I'll tell you in more detail what I'm trying to do.

Basiclaly the field should only be able to receive:

12 numerical digits ie. 999999999999

or

12 with a plus before ie. "+"999999999999

or

12 with a minus before  ie. "-"999999999999

Using your method does indeed stop the decimal being used, however then i am getting errors with the + and Minus which before seemed to work fine.

I've tried:

text{999999999999} | text{'+'999999999999} | text{'-'999999999999}

and also: text{999999999999} | '+'text{999999999999} | '-'text{999999999999}

But these dont seem to work. I'm sorry but I'm new to this.

I also have some code running on the validate as well (that was put in place b one of our devs) It looks like this:

"+" && 0 <= this.rawValue && this.rawValue <=999999999999 or "-" && 0 <= this.rawValue && this.rawValue <=999999999999 or 0 <= this.rawValue && this.rawValue <=999999999999

So any ideas why it fails on the + or minus with the updates validate pattern field, but not with the old ones? It seems i can either have + and - working as validation but the user can enter "." or the other way around.
0
 

Author Comment

by:SWS001
ID: 22647817
any update on this?

I really need help on this matter as am a beginner in this field.

Regards,

Daz
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 22668672
No, this goes too deep into Designer. I've only played with Designer forms, my expertise is in AcroForms.  
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question