How can I limit numeric codes in a text field?

How can I limit numeric codes in a text field? For example I want to list Industry SIC codes and I want to block someone from inputting an exlcuded industry code.

We don't offer that type of input restriction for a text field. 
Can you create a list of all allowed codes and use a Drop Down menu or Single/multiple Choice field? 
Thanks,
Josh

Similar Messages

  • How can I validate numeric values in a text field?

    Hi
    Once more I have a problem.
    I have a field in which the user should enter 10 digits in the pattern 999999-9999. The field must only contain numeric data and must be exactly 10 characters. I have a validation script on the print button, that prevent printing if required fields are empty or not properly filled out.
    I have tried two ways to work this out, and I'm not satisfied with any of them, as I can still print despite of validation scripts and warning messages.
    1.
    I set the field to numeric, limited to 11 characters.
    Display pattern num{999999-9999}, edit pattern num{999999-9999} and validation pattern num{999999-9999}
    Problems using this solution: When I type 11 digits in the field (ex.12345612345) I get a warning message and 12.345.612.
    But when I type 9 digts (ex. 123456-123 or 123456123) I get no warning message and 000000-0000 or 012345-6123
    If I type alphabetical characters (ex. 123456-abcd) I get no warning message and 000000-0000.
    2.
    I set the field to text field, limited to 11 characters.
    Display pattern text{999999-9999}, edit pattern text{999999-9999} and validation pattern text{999999-9999}
    Now when I type 11 digits in the field (ex.12345612345) I get no warning message and 12345612345.
    When I type 9 digts (ex. 123456-123) I get no warning message and 123456-123
    When I type 9 digts (ex. 123456123) I get a warning message and 123456123
    If I type alphabetical characters (ex. 123456-abcd) I get a warning message and 123456-abcd.
    It works slightly better as a text field, but I am not satisfied at all.
    Has anyone a solution to this?
    Additional I would also like the hyphen to emerge automatically when typing.
    K

    I just want to summarize my experience.
    I found a related discussion here: http://forums.adobe.com/message/2513720#2513720.
    Putting the pieces together I came up with this solution.
    form1.subform.TextField1::exit - (JavaScript, client)
    var      
    myRegex = /\d{6}\-\d{4}/;
    var   
    singleDigits = [0,1,2,3,4,5,6,7,8,9]; // array for single digit check
    if   
    (this.rawValue != null || this.rawValue != ''){ // only if the field has a value...
         if (!this.rawValue.match(myRegex)){ // and it doesnt match the pattern (i.e. 2 digits)
         this.rawValue 
    = ''; // clear the field
         xfa.host.setFocus( 
    this); // set focus back to the field
         xfa.host.messageBox('Error: Pattern Conflict. Please use the pattern 999999-9999.'); 
    // enter any message you wish here
    Kirstine

  • How can I change the content of a text field in a PDF form with a defined variable?

    Hello all!
    First time poster, and getting pretty frustrated with trying to figure out this one issue. Here is the scenario: I am using Acrobat 10 Pro to design what is essentially a giant order form. I designed the document in InDesign, defined the various buttons and whatnot and then exported it to Acrobat to continue building the form.
    I have a Radio Button group called "conference_opportunities" which contains different options at different price points, so they are all named the same, but have different values (so that they belong to the same group and only one can be selected at a time).
    What I have done is created a "MouseDown" event on the radio button that sets a variable called "ConferenceOpportunity" which is equal to the title of the option they are picking. I then want to take that variable and display it in a text box called "Conference_Option". I am using a variable because the values of my radio buttons are all the actual prices of the option they are picking, so I can't define the value as the title of the option.
    So its an array of radio buttons, and at the bottom of the page there is the Option They Selected, the quantity (which can change) and the value (in dollars)
    I also then want to display this variable at the end of the document as a sort of summary of everything they chose to purchase as well but I imagine its the same code.
    I am not an expert Javascript person at all, so any code snippets would help greatly. I have looked over the Adobe Document on the SDK and API and have not been able to find a solution. I have also turned to the almighty google and still no luck.
    Any help would be greatly appreciated!
    Thanks Everyone

    All you now have to do is use that variable to the value property of your text field... So add this at the end of your code:
    this.getField("Conference_Option").value = ConferenceOpportunity;
    Also, I would use MouseUp, not MouseDown.

  • How can I change the Background in a text-field into lets say grey?

    I created a text field and now I would like to not have the background in white. I did not figure out yet how I can do this. Also the help program did not help. Does anybody know how this works?
    Thanks a lot. Many greetings!

    Oh.. all right, forget it.. I just found it myself.... just looking a little more... Thanks for your help anyway....

  • How can I calculate the sum of the text fields?

    I'm trying to use a Flash form that has 40 text fields where
    the user will enter numeric values. I want to add one field that
    will show the total of all those values as the user enters them in.
    I have tried the following, but as soon as I add Val(Trim(...))
    around the current amount to make it numeric, it doesn't update as
    I type anymore. If I take that out, I get an error that it can't be
    converted to a numeric value. Any suggestions?
    Thanks,

    If you want to do your calculations as the data is being
    entered, you'll have to write some actionscript to do it on the
    client. cfcode runs on the server.

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • How can I merge 3 or more individual text fields into an editable summary text field?

    I am stuck and do not know where to begin. I am self taught in using Adobe LiveCycle and have found many answers here in the forums and via trial and error.
    I cannot find or create the correct java script or form calc to feed multiple text fields into one text field.  My supervisor is asking me to do this for two sections of a form I created using Adobe LiveCycle Designer ES 8.2.
    1)       Merge all 3 user entered text fields to an user editable summary text field at the end of the form.
    2)       Merge all 24 user entered text fields to an user editable summary text field at the end of the form.
    Since they are all individual text fields in response to various questions, I cannot use the global binding function. I do not want the summary text field to override the individual text fields.
    Here is the java scripting I placed on Show: calculate* Language: javascript Run: at client
    1) PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_" + CEBAStrengthWeaknessComments.rawValue;
    Needless to say, these instructions are not working on my form. Would someone with a lot of experience or an IT degree kindly help me?

    I just tried adding the front end as you suggested and confirmed that the Object > Value is set to "calculated - user can override" for the summary text field.
    OverallAnalysisAppFeedback.rawValue = PDStrengthWeaknessComments.rawValue + "_" + OCStrengthWeaknessComments.rawValue + "_"  + CEBAStrengthWeaknessComments.rawValue;
    I was still unsuccessful.
    I opened the debugger and received the following information. I do not understand what AdobeLiveCycle is asking me to define.
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    PDStrengthWeaknessComments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page20-OverallAnalysisAppFeedback[0]:AllOverallAnalysis[0 ]:calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Budget1Comments is not defined
    1:XFA:GARP2011NewRecompeteSRW[0]:Page21-OverallAnalysisAppFeedback-Budget[0]:AlBudgetQs[0] :calculate
    Do you have any additional tips or suggestions?

  • How can I change the caption of a text field using data?

    Hi, I've read that this is possible to do but when you have an xsd file, I'm using a preview xml data file, so there is no way to link them together, any ideas?.
    Thanks!.

    1) In Designer, Tools>Options
    2) Select Data Binding in the left pane and make sure Show Dynamic Properties is checked
    3) Select the field that you want the caption to be driven by XML
    4) In the Object palette under the Field tab you'll notice Caption is now green and underlined, click it.
    5) If your form is bound to a schema you can see the hierachy when you press the button beside the binding entry field or in your case to access the Caption attribute in your XML type> $.textField1.Caption
    Assuming '$' is your root node.
    Kyle

  • How can I change background color for a text field

    Hi I tried this
    style="BACKGROUND-COLOR:#00FFFF"
    working fine in IE
    but not working in Netscape.. any other way to set the background color?

    Netscape 4.x does not support this feature. Only Netscape 6.x does.

  • How can I limit the number of emails retained on my ipad air?

    How can I limit the number of emails that are retained on my iPad Air?  Because of legal requirements of a long-term project, I cannot permanently delete emails relating to that project from my ISP's mail server.  My gmail account contains over 17,000 emails and, upon setting up my new iPad, and updating to ios 7.1.1, I now have all 17,000+ emails taking up space.  I would like to limit the emails by count as I was able to do on my old iPad running ios 5.1.1 OR to retain them based on date range.  I have not found any instructions on the support discussions or general iPad blogs that allow me to do that.  Any way around this problem?
    I also miss the 5.1.1 mail search feature that allowed me to narrow the search by from/to/subject/all.  Does anyone know if that feature is available using some little-known ios 7.1.1 feature?
    Thanks for your help.

    jlfcba wrote:
    IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info.  There is nothing in iTunes relating to such an option either.  So, it seems I'm back to square one.
    If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
    If you have Gmail it does not.  Quite right. Gmail is rubbish.

  • HT2729 I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    I have limited space on my new ipad. How can I limit the number of songs from my itunes on my imac from going to my ipad when I connect the two?

    you can do this by keeping the external hard drive connected and doing the following
    -hold shift key down on computer while opening iTunes and a prompt will appear to choose a library
    -select choose library, iTunes should bring up your explorer windows where you can search for the external HD
    -after you find the external HD find the iTunes folder you just copied to it
    -after opening the iTunes folder look for the file that says iTunes library.itl or if you can't see that extenstion just look for a document looking thing in the iTunes folder that shows up as a database file
    -double click the database file and boom iTunes should load your library without having to copy it to the computer
    PS: do make sure that if you are going to do it this way, make sure that the external HD is connected at all times, because if you don't then you will get exclamation marks next to your iTunes songs
    double PS: if you are unsure how to find out if the iTunes library file is a database file just right click it and choose properties and under the type it should say database file
    hope this helps:)

  • Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    Hi, how can I limit the number of emails I can see on my iPhone 5. Every time in delete one and older email gets added from my live.co.uk account (where I want to keep my 2500 emails) I just don't want many on my phone. Thanks

    You can't. Why on earth would you attempt to manage 2500 emails with setting up a folder structure or some means of doing so? Simply keeping them in an single inbox is not realistic, no matter what email client you use.

  • Just got an ipad air and while creating my apple ID with credit card, I got to itunes gift card/ itunes gift section and was asked to supply a CODE to proceed with the form but I don't have the code. please how how can i get the code?

    Just got an ipad air and why creating my apple ID with credit card, a CODE was requested in the itunes gift card/ itunes gift in order to preceed with the form but I don't have the code. Please how can I find the code so as to enable me complete the form successfully. Thanks alot

    The iTunes gift card field is optional, you don't have to fill it in - leave it blank if you don't have a gift card.
    iTunes gift cards are country-specific (they can only be used in their country of issue), and they are not available in all countries - so you might not be able to dill it anyway.

  • How can I resolve error code -54 in iTunes? I am using the latest iTunes. No new updates are available.

    How can I resolve error code -54 in iTunes? I am using the latest iTunes. No new updates are available. I'm using iTunes 11.3 on a MacBook Pro, OS X 10.6.8. I can't save my library in iTunes, the message just keeps popping up.

    From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Although there is no formal list of OSX error code some of the old codes still apply to OSX .)
    First, try simply restarting your computer.
    Try quitting iTunes, then deleting the .xml (not .itl !) version of the library file in the iTunes folder (iTunes will generate a new one).
    iTunes Library cannot be saved (Error -54) - https://discussions.apple.com/thread/1912814 - various things to try.
    Unknown error (-54) while syncing ipod - https://discussions.apple.com/thread/1082953 - problem was locked files
    Why does iTunes keep showing a -54 error when I sync my iPad? - https://discussions.apple.com/thread/3727114
    Error -54 possibly related to Touch Copy - https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.
    iTunes: Missing folder or incorrect permissions may prevent authorization - http://support.apple.com/kb/ts1277
    Troubleshooting permissions issues in Mac OS X - http://support.apple.com/kb/HT2963

  • How can I get refund codes back after deleting the e-mail?

    A mistake by iTunes had me purchase Taylor Swift's Red album for full price even though I had previously purchased a few singles. iTunes sent me an e-mail with some refund codes, but I can no longer locate the e-mail. I looked on my account under "Gifts" but they are not there. How can I retrieve these codes?
    Thank you!!

    You'll have to contact the iTunes Store again and ask if they can resend.
    Regards.

Maybe you are looking for