How do I allow a single symbol in numeric-only field?

Good morning all,
I could use a little help with this one. I am using Acrobat 10 today working with form-fields in a document.
Currently I have several fields where I have limited input to numbers only (max three digits) using the folowing script:
function triDigKS
{    // Get all that is currently in the field
    var val = AFMergeChange(event);
    // Reject entry if anythig but digits
    event.rc = AFExactMatch(/\d{0,3}/, val);
They have thrown me a curve on this one. They want to be able to dispay negative numbers by using the minus (or dash/hyphen) symbol as well.
so before the field would display any 3-digit number but nothing else. No dashes, dots or anything else. I am limited by the fact that they only want to allow this single symbol and no other as well as up to a three digit number like so (-300, -27, -1 etc).
Any help out there?
Steve

Actually, I figured it out…I was removing too much from the code you gave me originally. To clarify, I did need to get to where the field would accept a or nothing…but I think I have it sussed.
Thanks!
Steve
The Promontory Help-Desk
Promontory Interfinancial Network, LLC
1515 North Courthouse Road, Suite 1200
Arlington, VA  22201-2909
866.776.6426, ext. 3450 (Telephone)
703.292.3451 (Fax)
[email protected] <mailto:[email protected]

Similar Messages

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How to query on a single row form using only one page

    Hi APEX experts, I am just a beginner in apex and I face several problems on development. Despite that the forum helps me a lot and your answers to other people are valuable , I have stacked into something. Could you please someone tell me : if there is a way to define a single row form page based on table in which I could query and update without using a tabular page (to call the single row form). I want only to use only one page. Does APEX has this functionality? Thank you very much?

    I haven't tried it, but I am going to guess that yes it's possible (or if I were going to do this, this is what I'd try and I suspect it will work).
    If you take a moment and step back and look at what the wizard does when building a "form on a table with report", all it does is build two pages with page 1 (report overview with drill-down Edit button or link usually) calling page 2 (form) and setting the PK field on the page 2 form with an automated row fetch process and built-in DML processes. It's not that hard.
    Page 2 really doesn't care what the calling page was in order to query a single row; it just cares that ANY caller sets the primary key value for the ARF process to fetch a row. So I would just make page 2 call itself. This is what I'd do (and you might have to fine-tune little things that I might not have forseen but I think this will work).
    For the sake of example, let's say our table is PARTS and in it is a PART_ID, PART_NUMBER, PART_DESCRIPTION, PART_COST, etc. Assume PART_ID is the primary key and sequentially assigned by the DB in a trigger and is functionally meaningless to the user and is for PK purposes only. Let's assume PART_NUMBER is a unique key (although not the PK) by which the user will "know" a unique row (since the PK of PART_ID is more internal and not meaningful to the user). Assume PART_DESCRIPTION, PART_COST, etc. are just attributes.
    1. Use the wizard and build a "form on a table with report". This is just to get the handy dandy ARF process and DML processes, validations, etc. all generated for you. Let's assume the report page is Page 1 and the form is Page 2.
    2. When done, delete the report page entirely (so delete page 1).
    3. Edit the form page (page 2) and change any branch references from the nonexistent page 1 to now be page 2.
    Now here's the part where something has to set the internal P2_PART_ID field when page 2 is run. So why not set it from itself from something the user will uniquely enter?
    4. Create a P2_PART_NUMBER_FETCH item (text item is fine or if you want a LOV or whatever that's good too....whatever works. For clarity, you might even want to create a separate "search" or "query" region separate and above your existing form region to set this field apart visually so users know it's a search field. Source for this field should be "only when current value in session state is null".
    5. Created some sort of "GO" button to go along with the P2_PART_NUMBER_FETCH field.
    6. Make sure none of your existing post-submit processes fire when GO is pressed (edit all of the computations and validations and processes and ensure that they have conditions such that they do not fire when the submit value is "GO", so like a PL/SQL expression and set to v('REQUEST')<> 'GO').
    7. Add a new validation to your page that only fires when GO is pressed. Have it validate only when GO is pressed. Have it validate that P2_PART_NUMBER_FETCH is not null.
    8. Add a new PL/SQL process to your post-submit processing that only fires when GO is pressed. Have it look up to the database based on P2_PART_NUMBER_FETCH and get the PART_ID that corresponds to the part number the user entered and set the part number, something like this (even better for style and reusability if you embed this in a DB package function and call it):
    SELECT part_id
    INTO :P2_PART_ID
    FROM PARTS
    WHERE PART_NUMBER = :P2_PART_NUMBER_FETCH;
    9. Not sure if the branches that were generated will suffice for this (might need to add a new one...review what you have and see) but the bottom line is that the page should branch to itself (page 2) and not clear the cache.
    10. When the page repaints, since :P2_PART_ID is now populated in session state (again, page 2 should not care how it got populated...only should care that it did get populated by anything (including itself)), the automated row fetch (ARF) should fire and query up the row from the database for editing.

  • 2g data allowance in single line plan is only for 4g LTE or for all data using?

       I got a single line plan and an iPhone 5s a couple days ago.  I am confused the data allowance is for 4g LTE only or for all data using?  Thank you!

        Hello edsun1997
    I would love to answer this for you. You have 2 GB's to use on our network this will start over at the beginning of your cycle. If you use Wifi and turn off our network, Wifi would not go against that 2 GB bucket.
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • How can I allow the application to line through a field that has been locked after being digitally signed?

    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How can I allow the apHow can I allow the application to line through a field that has been locked after being digitally signed? plication to line through a field that has been locked after being digitally signed?

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    HI,
    Kindly post this query in Acrobat forum:Acrobat
    Regards,
    Florence

  • How can I will declare the symbol u2018 (Single Quote) in the report

    Hi ,
    Could you please tell me how can I will declare the symbol u2018 (Single Quote) in the report.
    My requirement is that I have concate the data with single quote and after that I have to store the data in to an internal table and I have to download the data in the form text file in the presentation server.
    For example :
    Let the below data I want to download into the presentation serve in the format of text file by storing in internal table.
    Assume all are constants:
    1st line : abcu2019add
    2nd line :  defu2019gef
    Thanks in advance.

    Hi Jyothi,
    Thanks for the quick reply .
    I can agree with you are point but My requirement is like this I am explaining clearly.
    I have declared the internal table like this.
    DATA: BEGIN OF OTAB OCCURS 0,
             LINE (9024),
           END OF OTAB.
    So I have to append the each line item into the internal table.
    So I am explaining what the data I have to append
    Ist line contains
    'UNBUNOC:2020308u2019 where 020308 I will get the  date from reguh table
    2nd line contains:
    'DTM+20020510' where the 20020510 will be reference document number from the table reguh.
    So I want to declare a constant 'UNBUNOC:2
    2nd the date from reguh table
    And another constant u2018
    So that I can concate all the three and I can put into string and I will append into internal table and I can download the data into the presentation server.
    Please let me know if you need any more clarification regarding my requirement.
    Thanks in advance.

  • How do I allow other users on my wifi to print from their computers?

    How do I allow other users on my network (wifi) to print on my printers? 

    Hi there,
    You may find the article below helpful.
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/HT1203
    -Griff W.

  • How to use one button rollover symbol to create 100 graphically different buttons

    I do know how to create a button rollover symbol.
    I don't know how to make that button rollover symbol reuseable. I'd like to put 100 different images in 100 copies of the button. I'd rather not make new symbols for every button, since the rollover animation may change.
    Symbol "Accessibility" allows the title to be changed for copies of the symbol. Does similar functionality exist for bitmaps used in the symbol?
    Could the copied button bring in new graphics from the timeline in another symbol or a xml sheet?
    Any help would be greatly appreciated. I've been following tutorials, except none of them cover this situation.
    Thanks for your help!

    Created in EA version 3:
    I have 2 samples for you that are very similar.
    1- uses the symbol with no image and loads the image as a background-image for the div.
    https://app.box.com/s/co7uki3fm3b11a3o1xjw
    2- uses an image in the symbol and replaces this image with a new one in the img (not div)
    https://app.box.com/s/3ms92f5cv0mylspsi5uo
    Choose what you prefer.
    3. An example with more elements in the symbol directly on the stage instead of a container. use a container if you want to place the symbols in a specific rectangle div for example.
    https://app.box.com/s/y92bpo82kncxnn2w567y

  • How to show a single error message for all fields

    Hi
    I have a JSF from containing around 10 controls(input, select etc.) .
    Now I need to display an error message in case any of the mandatory control has validation error.
    Message format would be like
    "*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
    Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
    My code is below.
    *<h:panelGrid columns="3">*
    *<h:outputText value="#{msgProv.bi_firstname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText*
    *value="#{brokerInformationFields.firstName}"*
    *label="#{msgProv.bi_firstname}" id="firstName" required="true">*
    *<f:validateLength maximum="10" minimum="2" />*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:outputText value="#{msgProv.bi_lastname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
    *value="#{brokerInformationFields.lastName}" required="true">*
    *<f:validateLength maximum="20" minimum="1"/>*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:commandLink action="#{brokerInformationActions.submit}">*
    *<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
    *</h:commandLink>*
    I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
    And a Phase Listener from
    http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
    This Phase listener is to border the control with Yellow in case validation fail.
    Now my Query
    *1) How can I show a single message for all fields as I marked above in case of validation failure?*
    *2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
    *User can move from one control to other using tab. That time proper validation message is appearing.*
    *but the border of the control is not changing to yellow.*
    *What's the correcion can be made to meet that requirement too.*
    regards
    Roy

    Hi Nabheet,
    Thanks for your response.
    The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
    But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
    Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
    Thanks.

  • How do I replace a graphic symbol that contains text ... ?

    How do I replace a graphic symbol ?  It is actually made up of 3 layers including a textbox and bullet.  When I double click on the symbol, I get the Text Properties menu.
    When I single click on the symbol on the stage, the properties menu shows a Swap button.  When I choose the correct symbol and click OK, it looks like it worked but it still shows the original symbol name (Instance of it) on this Properties menu.
    Another issue is that when I change one of the symbols (by double clicking on the symbol and then double clicking on the text layer), it does change the text on that layer. However, then it changes the text on the other symbol as well even though they are different symbols.
    Note that I can edit the original symbol and the new one.  Both symbols are different.  In other words, they each show the different text (which is what I want).  It's like the original symbol is attached/embedded and cannot be changed.
    Background on this issue:  Rather than create a brand-new layer, I copied all the frames in a layer to a new layer because it has a motion tween on it.  I only need to change the symbol that is in the motion tween.  This is the only action/event happening on both layers.
    This should be so easy...  I have read many Q&As on this Forum and the Adobe Flash Help trying to figure this out.  Thank you for your help.

    It sounds like you have two symbols sharing another symbol.  Since you mentioned "original" it would seem to be a case of duplication.  Try creating each symbol separately without using one as a starting point for the other... or delete the part that changes for both in each instance and replace it separately in each instance with a new one.

  • How to alter instances of animated symbols

    I am stumped as to how to use an animated symbol repeatedly in a timeline while being able to alter its visual qualities without breaking the animation motion.
    I make a simple 3-layer animation of a body with two legs doing a walk cycle in place.
    I convert the completed animation as a new graphic symbol in the library.
    I can then drag copies of that animated symbol to different timeline layers and alter their overall scales or give them each additional motions with a motion tween so various versions of it can move across the stage independently with tweens while keeping the walk cycle movements of the symbol.
    So far so good, but...
    I can change the colour properties of the added symbols but this only affects the whole image, so if the object had a body and legs in different colours, altering the properties changes all of the body parts to the same colour. Doing this does preserve the walk cycle motion, but the new object looks crude because it has become all one colour.
    If I break the symbol apart, I can then alter the visual properties of the components individually, but then it loses its animation motion.
    Whether I just group it again or convert it to a new symbol, it has lost the animation motion (the walk cycle of the legs) of the original.
    I can't figure out how to make such an animated symbol so that I can reuse it in the timeline while changing its visual properties (so it looks like a different character in the story) and yet keep its original animation motion.
    I have tried to duplicate the symbol and to copy and paste the motion but nothing seems to work.
    Can anyone please advise on what I may be doing wrong or if this even possible in Flash CS3?
    Thanks for any advice.

    Hi Luis
    I suggest you could create each part of the body and legs as separate MovieClips (which converting to a symbol choose "Movie Clip" instead of "Grpahic0 and then form the whole body with these pieces.
    Now you could group all of the separate pieces in to a single MovieClip by choosing all of them and converting to a "Movie Clip" symbol.
    This way you could change the properties of each of the parts.
    Hope this helps.
    Karthik

  • How to make form a single long page; remove page breaks?

    Hi. I am pretty new to liveCycle but really like it so far! I think these forums are great too. I did a few forums searches and couldn't find a specific answer to this question, so I began this discussion. Please forgive my ignorance if this is has been discussed before!
    I am trying to make a form that isn't intended to be printed. I would like to make it a single long page instead of having page breaks in it. I have experimented with custom page sizes and way able to make the pages longer, but there is a limit to how long liveCycle allows me to make the pages... like 27" or something. I'd like to have no page breaks at all.
    I am not very familliar with XML, but do have some HTML experience, so I could copy/paste some code to the XML sheet if need be-- provided I was told where to put it.
    I attached a bit of the form I would like to turn into a single page to this discussion.
    Any help at all would be greatly appreciated! Thank you very much!

    In teh hierarchy view - click on the Master Page/ Page1. Now on the object palette on the Master Page Tab you can choose a Paper Type. If you scroll to the bottom of the list you can choose a Custom size. The width and height dimensions are now available to you. The UI in designer limits you to 59 in. If you need more than that there is a way to get bigger but you have to do it in the native XML format. Let me know if you need more than that. Here is a modified sample.
    Paul

  • How can I -change the currency symbol from Pounds to Euros in a spreadsheet?

    How can I change the currency symbol from Pounds to Euros in a spreadsheet?

    Assuming davyfromGib is asking about AppleWorks rather than Pages . . .
    If running AW under OS X, System Preferences settings allow you to use the euro rather than pound sign in AW's currency-formatted cells:
    System Preferences > Language & Text > Formats > Currency (set to Euro)
    AW respects this setting in choosing how to display currency format.
    But do note that if you later change the System Preferences back to pounds, the currency-formatted cells in the AW spreadsheet will also change to pounds.

  • How can I store a single instance of a hashtable

    How can I store a single instance of a hashtable in a predefined application object that way I can use it by all sessions? I've tried storing a instance of hashtable in the session but it only allows for one user and it doesn't accomplish my goal in the web application. Could show me how i could store a single instance of a hashtable in a predefined application object? Or at least a link which demonstrates it
    thanks

    assuming ctx is an instance of javax.servlet.ServletContext (which can be retrieved from the ServletConfig).
    ctx.setAttribute("yourAttrName", new Hashtable());

Maybe you are looking for