Script to restrict user to enter alphanumeric data

What's the java script code, through which user can be restricted to enter or feed both type of data; i.e. alphabets and numeric. (for postal address fields).
I want to use this code in my JSP page.
Usman

Hiii,
Please make use of onKeypress event of javascript.
U can block the required key codes.
Hope that helps.

Similar Messages

  • Restricting User to Enter Only Date Value

    Dear Expertsl,
    Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
    Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
    Regards

    Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:THEITEM, 'MMYYYY');
    EXCEPTION
      WHEN OTHERS THEN
        -- Show error message
        -- then raise error
        RAISE FORM_TRIGGER_FAILURE;
    END;

  • How to Restrict user to enter the data in CAPS ONLY

    Hi,
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    can any one help me on this.
    Karthik

    Hi,
    h1.
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    -------u need to set the CSS class for this item
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 24, 2010 11:16 AM

  • I don't want to allow a user to enter a date that is before January 2014

    I don't want to allow a user to enter a date that is before January 2014. I want to restrict users from entering a date that is or prior to December 31, 2013 in a date field. Is this possible?

    Seems like it is a little more complicated just to create a new Date() object in livecycle...
    the way I found to create a new Date() object is using the dateTimeEdit pattern to be 'date{EEEE, MMMM D, YYYY}'
    then u can create a new Date
    var date1 = new Date(DateTimeField1.editValue);
    date1.getTime();
    or
    you can also click the following link and download the pdf from the blog...
    Adobe LiveCycle Designer Cookbooks by BR001: Date handling in Livecycle Designer ES forms
    using XFADate object make it easy to manipulate dates with javascript
    The XFADate object created by BR001 is very good but to be able to see if a date is prior to another date you can just add this function in the object script..
    you can add that function at line 200...
    that.isPriorTo = function(date) {
         var toDate = newDate(date);
         if (isNaN(this) || isNaN(toDate)){
              return false;
         } else{
              var interval = this.getTime() - toDate.getTime();
              if (interval > 0){
                   return false;
              } else{
                   return true;
    To use that function above you can just use this code:
    if (XFADate.newDate(dateFrom).isPriorTo(DateTo)){
         //dateFrom is prior to dateTo
    hope this help

  • How can i restrict users for entering manual expenditure batch for inventor

    Hi,
    Can someone explain me how to restrict users to enter manual pre approve batch for inventory expenditure class in projects??
    Regards,

    Forms Personalization.
    Regards
    Dharam

  • BADI for MIGO for restricting User to entered other MVT types?

    Hi All,
    BADI for MIGO for restricting User to entered other MVT types?
    I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
    Please let me know any Enhancement to be used to restrict user ?
    Thanks and Regards
    Steve

    Hi Steave,
    You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
    Regards
    Ahsan

  • JAVA CODE Restricting users from entering Fractional numbers in Data forms

    Hi,
    is there anyone who can help me with the Java Script code of ValidateData.js file?? I am very novice in scripting and find it very difficult to write a proper javascript code to restrict the users from entering fractional numbers to HEADCOUNT cell. I would very much appreciate if i get some help from anyone out there.
    Users should be able to only enter whole numbers to the cells for Headcount entry.
    Kindly give me the layout of the script to be used. Has anyone out there ever done anything like this??
    Looking forward for a help.
    Thanks.

    Hi,
    I think customCellEnterPre and customCellValidatePre is the function you'd be using
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s01.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s03.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apa.html
    You can refer to SampleValidateData.js that's within Planning deployment custom js folder for further reference and sample usage.
    Cheers,
    Alp

  • How can we restrict users from changing the data in HFM.

    Hi All,
    We have requirement from users where, They don't want the base data being loaded from SAP to HFM via FDM through ERPi to get changed in HFM at <Entity Currency>. They want data to be read only and no body should be able to change neither Grid nor Forms and neither Smart View. If we restrict by Shared services access then again they can't change ownership management value.
    Regards,
    Sushil

    Hi Thanos, Thanks for your reply.
    Yes i am aware of the security class, so your suggestion is to use security classes to restrict users? And how can i use the phased submission for the same?  I am new to HFM so please bear with me.
    I have one more question that my Application is HFM EPMA application. So is it necessary to have Application Administrator to change hierarchy and Deploy the Application from EPMA?
    Thanks,
    Sushil

  • Want user to enter a date

    I am using Oracle 9i.
    I want the user to be able to enter a date and the report runs using values that are after this user inputted date, but am unsure how to do this. I have already created a user parameter that created a drop down list for the user to select something and then the report was run based on the selection. But I also want to run a report based on the date they enter.
    Sorry this is a bit rambling but is the best I can do! Any help on this would be great.
    Thanks

    Hi,
    Create a second user input date "p_user_input_date"
    make your drop down list optional .
    I mean add a NULL for the date parameter list.
    static list: blanc, dynamic list: append "union select '' from dual;" .
    then change the query where clause....
    with NVL(p_parameter_date, p_user_input_date);
    regards,
    CB

  • How do I prompt a user to enter numeric data while a vi is running?

    I am writing a Labview vi that to calibrate angle sensors. I need to prompt the user to enter numeric or string data for the low and high angle points so the vi can then calculate the span based on these values and the a/d output differences at these two points. I can't use preset points because the angle data is resolute to 0.1 degrees, and having the user raise or lower a boom to a predefined point is not within reasonable expectation. I would be much obliged for any help that is offered.

    Build a subVI that has two numeric controls for the user to input the data (name them something appropriate like "High Angle" and "Low Angle").
    Add and "Enter" button to the front panel.
    Set the subVI preferences to include Open Front Panel When Called and Close Afterwards if Originally Closed. these are in Windows Appearance, Customize.
    Put a delay (say 50 ms) and a while loop on the block diagram to wait until someone presses the button.
    Connect your front panel controls to outputs on the connector pane.
    This will pop up a dialog type of window when you need the user to input data. And make the dialog window disappear when done. You can also add valid data checking to the subVI and whatever else you need.
    Rob

  • Restrict user to enter % sign in Text Item

    Dear All:
    I want to restrict the user to enter Percentage '%' and Under Score sign '_' in the Text Item.
    How is it possible?
    I am using Oracle Forms 10g.
    Thanks
    Hassan

    Here is a javabean solution..
    http://fdegrelle.over-blog.com/55-categorie-265996.html

  • Please Help....On How to restrict user to enter into KM???

    Hi Experts,
    when ever user is clicking on a linkI am opening a document from the K.M. Here my problem is if user change the path, he is able to enter into KM... like..
    http://myEP:50000/irj/go/km/docs/documents/Links/World%20Time.htm
    This is the path to see an HTML page stored in KM. User is able to see the page... But when he changes the path to...
    http://myEP:50000/irj/go/km/docs/documents/Links/ 
    he is able to enter into KM into the corrosponding folder. How can I restrict him to enter into KM???
    Regards,
    Srinivas.

    Hi Gopal and S.J,
    Thank you both for your replies....
    This user is not assigned to Content Admin role....
    I have given permissions to the corrosponding folder for only one user (end user)...
    As you said(Gopal), I have seen the same case in some other portal site like...
    Assign permission for a particular folders to the end user.
    Then you will get the below message.
    The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.
    Even now I am getting the above message but still user can enter into KM....
    Regards,
    Srinivas.

  • Execute script as restricted user

    I'm trying to execute a script that works under an administrator account but not under our student accounts, access is denied. The script changes some keys/values in the registry. I've tried several different options in ConsoleOne and Group Policy, but nothing seems to work, I might be missing something though. Is there anyway to get this to run and change the registry under a restricted user account? We are running Windows XP at the moment on our machines. I would greatly appreciate any help and getting this to work. If you need anymore information I'll be glad to provide. Thanks.

    Originally Posted by brpwll
    I'm trying to execute a script that works under an administrator account but not under our student accounts, access is denied. The script changes some keys/values in the registry. I've tried several different options in ConsoleOne and Group Policy, but nothing seems to work, I might be missing something though. Is there anyway to get this to run and change the registry under a restricted user account? We are running Windows XP at the moment on our machines. I would greatly appreciate any help and getting this to work. If you need anymore information I'll be glad to provide. Thanks.
    Simply set it to run as secure or unsecure sytem user.
    Thomas

  • How to restrict user to enter duplicate items in Purchase Order Lines?

    I have to do form personalization so that user cannot enter duplicate items in the PO.
    At when-new-item-instance in PO-Approve field, I have created a database function that is taking the count of items and returning the count value.
    In the condition I have given condition:
    1<(select func_name(parameter) from dual)
    10       message                 duplicate items in the po
    But its not working fine.
    Thanks & Regards
    Sunny

    Hi,
    The issue is resolved on my own exploration. We need to maintain the different authorization keys for the status which we did not want  a user  to access. If we leave it blank it will allow user to access.
    Regards,
    Sharath

  • FB60: how to restrict users to enter specific G/L ACCOUNTS in fb60

    hi experts,
    In FB60 - vendor invoice , i want to restrict end users to select  specific g/l ACCCOUNTS .
    document type is KR - VENDOR INVOICE
    kindly give any suggestions if it is possible.
    thanks & regards,
    Raghul

    If you have a one to one between GL accounts and Committment items, the commitment item has an authorization group field on the basic data tab. You can assign certain users an authorization group linked to committment items which correspond to GL accounts.
    Depending on the complexity of what you are trying to do and considering that you don't want to require a lot of maintenance, you may be able to use line item validation.
    Finanancial Accounting, General Ledger Accounting, Business Transactions, G/L Account Posting, Carry Out and Check Document Settings, Validation in Accounting Documents (i.e. if T-code is FB60...GL acct must be XXXX and something else must be YYYY etc...)

Maybe you are looking for

  • Links do not display correctly in my pdf

    www and http are not displaying in pdf files converted from MS Word When I convert a Word document to pdf using Acrobat Pro 9.0, the website addresses do not display correctly. For instance, if my document shows www.website.com - then the pdf only di

  • Where are the facilities to add custom date ranges, indexable by Spotlight

    The Finder is meant to be just that... A way to find files right? Well lets look at a simple business scenario. I get a bill from a supplier, I pay the bill, I receive an invoice, I process the invoice through my accounting package. Now with paperles

  • Mac mail attachments not searchable in gmail webmail

    Attachments sent for my Mountain Lion Mail.app (using my gmail account) are not searchable from the web gmail.com when I use advanced search options like "has:attachment". However, emails with attachments sent from web gmail.com are searchable. For s

  • Advanced dreamweaver and php question

    Hi I have a portal type of website for hairdressing and beauty industry. I am wanting to know if it is possible to have one register form so that the the user can use more than one area: Register for Directory/Classifieds - free registration and use

  • Animateing InDesign Objects in After Effects

    Hay all, i got an little problem. I need to animate single Objects in InDesign and need to do this in After Effects. is there a way to import the InDesign File into After Effects so i can animate every single Object ? It is too much work to import ev