Limit the input field to '1', '2' or '3 '.

Thanks in advance for any help,

I have a form that performs calculations and I need the input fields limited to the numbers '1', '2' and '3 '. I currently have the number set in shape '0' decimals and the range to validate the value of 1 to 3. This will change an entry such as "1.2" to "1", but when this number is calculated as the average, the '1.2' is acutally being calculated.

I need a way to prevent anyone from inputing ANYTHING other than 1, 2 or 3.

Thanks again!

You can do this with a text field, but it is heavier. You can use this as the custom for the field validation script:

"Event.RC = event.value ==" "| Event.Value == "1" | " Event.Value == "2" | " Event.Value is "3";

If (! event.rc) app.alert ("Invalid value!");

Tags: Acrobat

Similar Questions

  • to limit the input in the xcontrol string characters

    Hello

    I followed an example online at deveope an xcontrol for the input string, but limit the input only characters for capital letters from A to Z. I have the main code as follows

    In the key to the bottom of the event, I throw all input character with the ASCII beyond [65, 90]. Sounds works but if I continue to press a prohibited (e.g. %), it will show that the key in the control. So, how can I ban the entry by a long press on a button? Thank you.

    Maybe including an event ' key repeat? It will handle the case when a character is added when the user holds the key. I think that you will just need to copy the code in the event "button down?

    Jeremy P.

  • How to limit the index field filter to display in standard integration page?

    Hi all

    I have a question here, how do I limit the index fields of standard display configuration check page? I noticed, there are also many fields unrelated to display standard failed in the page. Can I limit only the useful indexes appear in standard integration page? and how can I do?

    Thank you for your help.

    If you want to hide in the world, including all profiles too, you should be able to hide on the interface.

    Configuration Manager > Information fields > select > Edit > uncheck the box: turn on the User Interface > Ok

    When you do that, you may just want to remove the field.

  • Adding a box/border around the input fields

    When someone goes to check on our website on the input field where you enter your name, address, delivery etc. info there is no boxes to show exactly where to click to start typing. You can still type, but the boxes to make it much easier for people. There is a picture of what I mean. It is a web module in British Colombia. What is the code or what can do to get the boxes?

    Screen Shot 2015-07-15 at 4.07.12 PM.pngScreen Shot 2015-07-15 at 4.09.09 PM.png

    Do you know some CSS to your site and how to change that, know how to inspect the elements in your browser?

    You will need to do this and add css border: 1px solid #ccc; or something for your styles on the fields of seizure and/or address, what is the alternative to the default value of the browser.

  • Fonts of Zwaygi appears in the input fields (very well elsewhere)

    I'm working on a site of two language www.eprpinformation.org. The version of Myanmar becomes automatically the font family for body text Zwaygi-One which works wonderfully well on IE, Chrome and Firefox.

    Except, that is, to input fields. For some reason these screen unknown, although characters by looking at the css for the entry, the correct font family is applied. Please see screenshot > > http://eprpinformation.org/images/firefox-zwaygi-font-issue.jpg.

    Any help would be grateful.

    Mark

    Hi cor - el,.

    Thanks for the quick response! It didn't completely solve the problem, but he put me on the right track.

    It turns out that the css rule is not applied to select or input so I did which is explicit and it now works fine.

    M

  • Disable "clickToEdit" for the input field text selection

    Hi all

    I use JDeveloper 12 c (12.1.2).

    I added an af:table with the editingMode = "clickToEdit."

    In the documentation at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_table.html he was part of the behavior is "5.  Text entry field selection: when a cell contains a text input field widget, the text is automatically selected when the widget has focus. »

    Is it possible that I could disable or take action against this problem does not happen?  I tried to do a 'click' listener customer event, but my javascript skills are not so big so I don't know if I'm doing things.  I tried the selectionStart/end value, but it seems to do nothing.

    Any help/advice would be appreciated.

    Thank you

    Derek Hansen

    You can try to tie af:clientListener to each inputText component and listen to 'theme' of the ceremony.

    Then call javascript function similar to this:

    function unfocus(evt){
      var comp = document.getElementsByName(evt.getCurrentTarget().getClientId())[0];
    
      setTimeout(function(){
          if(comp.setSelectionRange){
              comp.setSelectionRange(0,0);
          }
          else if (comp.createTextRange) {
              var range = comp.createTextRange();
              range.collapse(true);
              range.moveEnd('character', 0);
              range.moveStart('character', 0);
          }
      }, 200);
    }
    

    Dario

  • AutoFill the form based on the input field

    Hey everybody,

    I have a form on the EMP table, with a text field containing the empno.

    When I get a (valid) empno, I want to give all the necessary information (ename, job,...) automatically in the fields.

    I read somewhere that I just write a query for each input field + dynamic action that refreshes the entire region with the shape when I change the value empno.

    Now is it possible to ignore the write request and only use the RFA process?

    Thanks in advance,

    Jules

    If you don't want to again... You can use DA, which executes PL/SQL code, with the code as ' select yyyy in: PXX_ITEM "for example...

    To trigger this DA, you can anyway implemented by the DA, or you could set it as "CUSTOM" event and pressing this extraction, enforce a jscript that would un.event.trigger ("Custom_name") $;

    Who should do to avoid submission... If that's what you want.

  • Delete the last character in the input field

    How to remove the last character of an input field?

    It deletes all

    When you click on:

    SYM.$("textfield"). Empty();

    Thank you!

    Try this:

    var inputTxt = sym.$("textfield").text ();

    var truncatedTxt = inputTxt.slice (0, -1);

    SYM.$("textfield"). Text (truncatedTxt);

    HTH,

    Vivekuma

  • Unable to save the session value in the input field for db

    Hi all, I use oracle jdeveloper 11g release2. I'm not able to store session in the DB value. Actually I access to the session value (either x here) while the user logs and filling in the form of entrance to box as "#{sessionScope.x}". It works very well. But when I try to back up the folder DB his throw error saying required attribute 'viewname.x'. The value of x is present in the input area. Yet, its throwing the error. Any idea on this. Am I correctly access the session variable.

    Hello

    What I understand, it's that you have ViewObject based on the entity object this object attribute 'X' view and you must set this attribute with a value in the session scope.

    You can set this programmatic as attribute:

    setX(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(sessionScopeVariableName));
    

    You can add this line in doDML() in EntityImpl as:

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation != DML_DELETE)
        {
          setX(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(sessionScopeVariableName));
        }
        super.doDML(operation, e);
      }
    
  • Photoshop Script - Javascript: return of the input field value?

    Hello

    I've got the entry field following "edittext" rendered in a window. How can I find the value that has been entered in it?

    cal_char = cal.add ('edittext', [25,40,135,60], ' 1');

    I tried cal_char.value, but it does not work.

    Any help?

    Thank you!

    Try cal_char.text,

    x

  • What is the opposite for readOnly (or OPEN the input field)?

    Hello

    I have 2 text fields, the 2nd field (readOnly and gray color) is dependent on the 1st field value. Say,

    Article 1

    If the user has NOT entered any value in 1-fied,

    Then make 2nd field readOnly and disabled it.

    2nd section

    If the user has entered a value any in 1 fied.

    Then take the 2nd field OPEN and normal color.

    Get the 1 (readOnly) section, pls let me know the Java Script code for the 2nd section. I tried with readOnly = false, but didn't work!

    Thank you

    JavaScript
    TextField.access = "open";
    
    FormCalc
    TextField.access = "open"
    
  • How to disable the input fields using backing bean

    Hi all

    I use jdev10g ADF. can someone help me how to disable all fields on a page by clicking on a button?
    I say 10 fields and a read only field that has a value of default db 'Pending'. I have a button that, when I click, I disable all the other fields and change the value of the field read-only 'closed '.
    How can I do this method of bean pressing button?

    Thanks for any idea

    Preeti

    You need not to do this a bean of support. Instead on the components that you want to disable write an EL expression for the disabled attribute something like this:

    #{bindings.yourfield.inputValue == "CLOSED"}

    CM.

  • The Input Field IN the SIT SSHRC validation

    Hi all

    I need you help guys.

    We have created a SIT and she deployed the SSHRC . In which we act in user input.

    My requirement is to restrict the user to enter only "Word characters". The user cannot enter any number or a special character in this field

    I created a value set using the format type 'tank ' and selected letters (A-z) , but he has not had no effect.

    I also tried the value Type of Validation of all 'special ' but this type work only on Oracle Forms on OFA.

    Please guide me in this way.

    Concerning

    Ali

    Ali, no need of any user don't hook... just write plsql validation inside the packaging... Please open the package you ll get an idea... sample code is

    If l_id_flex_structure_code = "XX".

    THEN

    IF TO_NUMBER (user_segment1) > 15 THEN

    THEN

    ERROR_MESSAGE. =

    'MUST BE LESS THAN 15 HRS.';

    RETURN FALSE;

    END IF;

  • Hide the input field

    Hello everyone, I have a question on the pages ADF design.

    I have two field input A and B. A is a a select choice (with value 01, 02 and 03). B is an input text.

    I want to B like invisible when A is selected to the value 01.

    When A is selected for the value 02 or 03, B will be displayed.

    Anyone have any ideas? I was wondering if I just need to put in place a sort of "listener" or do I need to code?

    Thank you very much for your time,

    Sincerely,

    Alto

    Hi Viola,

    Something like this should work for you:

    
    ...
    
    

    AP

    Published by: Alejandro Profet on November 27, 2012 20:01

  • The label inside the input field

    How to display the label inside the text input? Label should be grey & when the user enters the value in text entry, label should disappear. In addition in the case of a required field, it must be evaluated?

    You can use javascript to do this...
    more precisely... jQuery...
    http://digitalBush.com/projects/watermark-input-plugin/

Maybe you are looking for

  • Video of low without quality loss

    I try to export my video I want low memory as less than 1 GB or MB without losing video quality, I try several times not idea how work I want to keep the MP4 files, overtime I export more than 3 GB, then I use quicktime player to change low GB, but l

  • I need drivers for my hp mini 1035nr and can't find them

    I have a hp mini and it crashed so I re installed win xp but I can't find the drivers I need for this please help

  • Recovery HP USB Flash disk utility

    I wanted to do a cover of flash disk for my hp mini 110-1131DX twists. Operating system is windows 7. URL is much appreciated. Thank you.

  • Pavilion g6: Hewlett-Packard Windows 7 backgrounds

    Hi, I had my laptop filtered, cleaned and upgraded, in doing so, all the files that have been deleted. I'm taking back as much as possible. There is a website where you can download the backgrounds for this laptop specific in time, now I can't find i

  • Windows Mail does not seem like Gmail

    I want to continue to use gmail and not use Windows mail in any form, and that works for me, unless I submit to a form of e-mail. Then my e-mail is rejeced by Windows Mail which says that "the message could not be sent - Auhenicaion parameter." Go to