How to Show Partial SSN in a Text Field

Hi,
I have text field on an apex page which takes SSN as input.
How to show only last four digits of SSN after it has been entered.
For Instance when I type 111-222-3333 and hit enter or tab, it should appear as XXX-XXX-3333.
Thanks in Advance.
Yogi

Hi Yogi,
You did not mention the most important thing.. Where are going to display the SSN ..
if it is in report then:
select regexp_replace ('111-222-3333','[0-9]{3}-[0-9]{3}','XXX-XXX') from dualOutput:
SSN
XXX-XXX-3333
If you are going to show it on an item, then you should use that REGEXP in the source of your item... The source could be SQL or PL/SQL.
If you need to show this format XXX-XXX-3333 as the values is being entered, the this plugin could be helpful:
http://apex-plugin.com/oracle-apex-plugins/item-plugin/text-field-with-masked-input_63.html
Best Regards,
Fateh
If you believe that my answer was correct or helpful, then please mark the answer as helpful or correct

Similar Messages

  • How  to show password in spry validation password field?

    how do  I make the password display in the spry validation password field , the standard one is just a bunch of asterisk .

    Just use a normal textfield, instead of a password field. The only difference between a password field and a text field is the characters not showing up.

  • How can i validate current row input text field like required.

    Hi All,
    jdev 11.1.2.1.0
    in my use case i have drag drop one viewobject as a adf table. and in table i have also add one extra input text field which is not based on
    vo.
    now i want to validate current row input text field not null when i commit row.
    but when i using required property true. it worked for all row in table. problem is that i want only current row input text field validate not all
    thanks,
    Manish

    When the user tries commit the data by clicking on the button -- For that button, have the logic in the actionlistener method to check if the additional input field is NULL or NOT.
    If it is NULL, show an error message using FacesContext.addMessage() API.
    Thanks,
    Navaneeth

  • How to "encapsulate" a data from a text field in a JSP form

    Hi. I'm trying to make a user's registration jsp page and I'm not sure how I could get the data from a JSP form from the user and store that into some variable that I could later pass to a query to modify the database. I've been using a JavaBean, but I get null values for all the fields of the jsp page. That's logical, since I cannot find a method that will read the user's input and store that into some variable. In my JavaBean, I have get and set methods that will return a String for each of the form fields such as first name and email. The set method will have in a String as a parameter to set that field value (whichever field it is) to the value of the input parameter, but I don't know if there is a method or a way to read and store the values entered by the user into the jsp form. This is a code snippet of the jsp form:
    <TR><TD>First Name: </TD>
    <TD><INPUT TYPE="TEXT" NAME="fname"
                   VALUE="<%= newUser.getFirstName() %>"></TD></TR>
    Here, the getFirstName() method simply returns the value of a String value related to the user's first name, which is initialized as null in the JavaBean. newUser is the name of the JavaBean that I'm using.
    Any suggestions? Thanks.

    haha...nevermind this question also guys...I found out that I could use the request.getParameter("some_String") method with my JavaBean to read and store data entered by the user in a text field.

  • Forms: How to set a maximum size in Text Fields with automatic size

    ¡Hi!
    When I set a text field on my forms and I use automatic size for te text that the user can write, if the user don't need more space than the field size, when the text appears, Adobe Acrobat Pro always set the text-size to 14 or higher. How can I set a maximum size for that text? For example... 12 or 10...
    Thank you very much,
    Best regards from Spain,
    David.

    Ok. If I use a single line text field, changing the height of the field seems to be a simple way to solve the problem, but... what should I do when the fields are multi-lineal?
    Thanx for your quick answer.

  • How do I make content in a text field continue onto a new page?

    I am creating a form and one of the pages contains a text field for an essay. I'd like the responses in this text field to carry onto new pages if they reach the end of the first page. How do I make new pages appear with only the continued text field? Thanks!

    All right...
    public class guiClient extends JFrame implements ActionListener {
    static String userString;
    static String currentFont;
    String fontchoice;
    String fontlist;
    static JTextField userName = new JTextField();
    public guiClient() {
         super("My Client");
    public guiClient() {
         super("My Client");
    // Create a ComboBox
    GraphicsEnvironment gEnv = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String envfonts[] = gEnv.getAvailableFontFamilyNames();
    Vector vector = new Vector();
    for ( int i = 1; i < envfonts.length; i++ ) {
    vector.addElement(envfonts);
    JComboBox fontlist = new JComboBox (envfonts);
         fontlist.setSelectedIndex(0);
         fontlist.setEditable(true);
         fontlist.addActionListener(this);
         fontchoice = envfonts[0];     
    //Create a regular text field.
         JTextField textField = new JTextField(10);
         textField.setActionCommand(textFieldString);
         textField.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    //if the action is from the textfield (e.g. user hits enter)
         if (e.getActionCommand().equals(textFieldString)) {
              JTextField fromUser = (JTextField)e.getSource();
         if (fromUser != null){
    //place user text in editor pane
    //send message to server
                   if (userName.getText() != null) {
                        userString = userName.getText().trim();
                   out.println(userString + ": " + fromUser.getText());
              fromUser.setText("");
         else if (e.getActionCommand().equals(fontlist)){
         JComboBox cb = (JComboBox)e.getSource();
    String newSelection = (String)cb.getSelectedItem();
    currentFont = newSelection;
         userString = currentFont;
    return;

  • HELP!! How do I create hyperlink in a text field?

    Hi!
    I've been going through the message boards and I am not finding my answer.  I have created a form utilizing LiveCycle.  I have made the form so that it can be fillable via Reader Extended PDF.  I need to be able to put a link in a text field that the next user can just click on it, and it will take them to a document in SharePoint for review.  I've tried changing the text field to rich text in LiveCycle, but the steps to add the link in the PDF is too lengthly and not friendly.  Once I finally get it to put the link in, the end user cannot just click on it.  They have to take additional steps.  Someone on the boards mentioned something about putting a button next to the field that will convert the text of the link in the previous text field to a link, but I cannot find those instructions or understandable instructions.  The management wants it to be where you just click on the link.  How do I do this?  I am not a techie, so I need instructions in layman's terms.
    PLEASE HELP!
    Thank you!
    Maribeth

    I'm in the same boat as you, inasmuchas I taught myself LC. I've tried to replicate your issue. I'm trying to understand where the issue actually lies.
    First, I created a new document to test. I dragged the text field onto the document and stretched it to accomodate what I was going to type and entered: http://www.google.com/something
    This works as intended.
    Next I tried a link similar to yours in our own intranet: http://intranet/WebPages/support.aspx
    That also worked.
    Now, for what you're actually working with: a SharePoint document.
    I tried to paste a link to a document that I created on our Sharepoint site. The link failed! I noticed that the end of the link was truncated (something like 7 characters). So, I tried a shorter link. That worked!
    What else is happening when they click the link? Are they simply being asked to "check out" the document? Are you getting an error message like "an error has occured while opening the page"?
    Message was edited by: jasotastic81 (apparently "lnik" is not a word)

  • How to change the color of the text field of form

    Hi ,
    Is there any way to change the color of the text field of the form........
    Thnx in advance .......
    Cheers,
    Eman

    Hi Bob. I'm new to these forums and I'm not sure of protocol and exactly how this is supposed to work, so If I'm doing this wrong then please excuse me and let me know.
    I liked you solution on 'How to change the color of an Item on a form' using <blink>.
    I'm new to this application and coding as well so its kind of foreign to me.
    Working on a Report Page,
    I would like to have item, :P1_JOB_NO blink when the difference between sysdate and :P1_DATE_DUE < 7 days.
    I can identify the job_no which should blink by using the sql statement:
    SQL> select job_no from oax_projects07 where
    2 (sysdate - date_due < 7) and
    3 emp_name = 'GARY PILKENTON';
    JOB_NO
    20060627 050
    But I dont know the proper syntax to make it blink,
    or when to plug the syntax into.
    ie, is it a process, a validation, etc.
    Do you have any advice for me?

  • How to show exact value in ALV output field (including space at the start)

    Hi,
    This is my Scenerio:
    In the output the field value (char type) shows "6-10-3", the actual field value has a space before the 6 " 6-10-3".
    How to incorporate this, any suggestions?
    Thanks in advance,
    Dileep.

    Hi Dileep,
    While filling the internal table of that field, conactinate with the space and fill.
    like
    concatenate space
               wa-fileld " your fild
               into wa-filed.
    appned wa to itab
    clear wa.
    hope it works.
    Regards!

  • How do I add color to a text field?

    I'm setting up a simple Flash contact form that sends a mail message using PHP. I'm using the Text Input and Text Field components and would love to style the background tint of the text fields so as to not be white. I want to be able to enter my own hexidecimal number. This seems like it should be easy, like a button or property or something, but I can't figure it out. Please help!
    Using Flash CS4 on a Mac, in an ActionScript 2.0 file. (Can make a 3.0 file if necessary).

    I'm not sure how to create an input textfield other than dragging out a component. What's the difference?
    Also, this is a difficult one to search for, since all of my attempts have given me answers on how to style the text in the field, but not the background color of the field.
    Any good tutorials on how to create custom skins?

  • How to move the cursor to a text field

    Hello,
    I have a log in window with Username (Text field) and password (Secure Text field). The 'Log In' button is not enabled if I use the Set command. So I wish to use the Keystroke.
    But I need to make sure that Cursor is in the text field and then to keystroke. So how can I move the cursor to the required text filed?
    Note:
    +Why the cursor is not blinking in the text field where I just 'SET' (command)+
    +the value?+

    Well, for a start you can identify the application you're working in. That's kind of important.
    In most cases you can just emulate a press of the tab key but it's kind of a crude a approach (there's no guarantee that you're in the field you expect). Certain applications, though, may have better ways of achieving it, but since we don't know what application you're using we can't say if that's the case here.

  • How to increase the height of the text field in Adobe Central

    How do I increase the height of the text field in Adobe Central?  I know how to change the font size but visually the height of the text field (<0.5cm) looks too small.
    I want to be able to print the form and fill it out by hand. But the text field height is too small.
    Please help.
    Thanks
    Gen

    Hi;
    Are you saving your form as a PDF from FormsCentral to distribute the PDF form? 
    In the FormsCentral form authoring tools you do not have control over the size of the field.  If you are using a PDF however you can edit that PDF in Acrobat after saving from FormsCentral and can edit the size, border, color etc of the fields. 
    If you want to edit a FormsCentral PDF you'll want to review this FAQ:
    http://forums.adobe.com/docs/DOC-3661
    Thanks,
    Josh

  • How to make ? nr of container text fields

    hi have this fla wich has 2 sets of containing text fields
    after a php file gets the only two rows in a database, it puts the values in the textfields.
    now what i want is
    i want flash to put the instances of the textfields automatic on the stage
    like when there are 8 rows, i want 8 sets of textcontainers.
    how do i do thiss.
    i have this really simpel fla file
    wich can be downloaded here
    http://www.flash-db.com/Tutorials/loadingAS3/loadingAS3_flash-db.rar
    its in the BD folder, also the php file
    would be so nice if someone could edit the fla file, so i can check out how this is done?
    or maybe a tutorial on this or something?
    thx so much in advance

    Hi Allice,
    You can use this :-
    for ( var i=0;i<8;i++)
    var txt:TextField=new TextField();
    txt.name="txt"+i
    txt.x = 0
    txt.y=i*10
    addChild(txt)

  • How to make html file from a text field data

    hi!
    I want to know how to make a file with .html extension and the data in this file should be from a text field. like i want to enter some thing in a text area and have to place it in a file on server side in html formate.

    so you told us what you want, but what is your question?

  • How can i calculate the lengh of text field of workarea at runtime

    hi .
    we tried below code but it is always showing entire lenght of field , not the lenght of text field 
    DESCRIBE FIELD wa_itab_raw-txt LENGTH len.    
    IF len GE 139 AND wa_itab_raw-txt+39(1) = 'R'.
       wa_itab_retro = wa_itab_raw.                
       APPEND wa_itab_retro TO itab_retro.         
    ELSE.                                         
       wa_itab_sbi = wa_itab_raw.                  
       APPEND wa_itab_sbi TO itab_sbi.   
    kindly help me
    correct answers will be awarded <= read the rules [here!|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Edited by: Julius Bussche on Jul 28, 2008 6:37 PM

    Hi,
    try this
    DATA lv_length TYPE i.
    lv_length = STRLEN(wa_itab_raw-txt).
    Regards Rudi

Maybe you are looking for