JavaScript question - accept user input and use them in other areas with case changed (i.e. in a field to uppercase and the other as capatilsed each)

Hi ther,.

Ive been away from Livecucle for quite awhile and I lost a handle on coding.

I am tyring to get the data from that paid to be repeated also in two other areas with different formatting (in capital letters and capatilise each word)

Therefore, if the user enters "james smith michael" in a named filed - say - fullanme - she could also be replicated in a fullnameCaps file - changed to uppercase in this area (i.e: JAMES MICHAEL SMITH) and - class fullnameCapsEach get out of James Michael Smith

the other fields will be just hidden.

I remembered hot change the entry to the ceilings in the entry field - xfa.event.change = xfa.event.change.toUpperCase () - but that only works in the entry field of course.

I tried to set the fullnameCaps and the fullnameCapsEach to equal the rawvalue of the entry fullanme field and put the code of change in them - but that doesn't seem to be the answer!

Someone out there you have nay of ideas?

see you soon

Hello

Try this solution in the event of change of your input field:

var str = xfa.event.newText, capsAll, capsFirst;

  capsAll = str.toUpperCase();
  capsFirst = str.toLowerCase().replace(/([^a-z]|^)([a-z])(?=[a-z]{1})/g, function(_, g1, g2) {
    return g1 + g2.toUpperCase();
    });

fullnameCaps.rawValue = capsAll;
fullnameCapsEach.rawValue = capsFirst;

Tags: Adobe LiveCycle

Similar Questions

  • I forgot my icloud user name and the password, my ID apple won't do me in my phone how to lay or clear everyhing so that I can use my phone again?

    I forgot my icloud user name and the password, my ID apple won't do me in my phone how to lay or clear everyhing so that I can use my phone again?

    https://iforgot.Apple.com/password/verify/appleid#! & section = password

  • Why the fast user switching and the new Windows Search use the Terminal Services?

    Recently, I was struck by a piece of really bad, malicious malware that totally trashed my operating system.  Therefore, as I rebuild my system, I am applying the appropriate safety precautions.  Among the recommendations of Microsoft is to reduce your footprint of security by disabling unnecessary services.  One of these services that I thought I didn't need was Terminal Server services, since it is a way for a person to get to my machine remotely.

    It turns out that, however, other services that I want to use, such as Fast user Switching and window new search utility, depend on the Terminal Server Services.  It makes no sense to me from a safety point of view.  This seems to be a bad design decision, because security trumps utility.

    If Microsoft is listening, I would like to know why you made this decision and you have changed in Windows 7?

    Second, is there a way to always have the Terminal services Server running and at the same time cut access remotely through this service?

    I don't know about the 'new' Windows Search, but what about the fast user switching you ask to run several sessions of Windows when you switch between users (a session for each user connected) and the only way that Windows can do is to act as a quasi Terminal Server, it needs Terminal Server services to run multiple sessions.

    John

  • I bought two licenses adobe and I can't use them because they are expired, expiring 2017/03. I had this problem and solution still has the air of 15 days!

    I bought two licenses adobe and I can't use them because they are expired, expiring 2017/03. I had this problem and solution still has the air of 15 days!

    [Moved from the endorsement, general, all Adobe forums Lounge for a specific product - Mod support forum]

    Hi Eugenio,.

    It seems to be a problem of implementation.

    Try wearing the same query in the General Photoshop Discussion where experts can help you.

    Kind regards

    Sheena

  • How can I remove the user name and the image of Windows XP new Start Menu

    Two questions:

    1. How can I delete the user name and the image of Windows XP new start; and

    2. my computer keeps asking me to press the F1 key to start Windows.  How to skip this part?

    Thank you.

    Hello

    The image of user account can be removed by disabling the Welcome screen. Or, by opting for the classic Windows theme. Follow the method described in this article, if you want to remove the user name and the picture in the Start Menu, without disabling the Welcome screen and Windows XP theme.

    For those who want to delete the user name and the image of user account from the Start Menu, in order to have a blue white Panel at the top, try this:

    Registry warning
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756/

    Step 1:

    a. start Windows Explorer and go to this folder:
     
    C:\Documents and Settings\All Users\Application Data\Microsoft account images

    b. in this folder, rename the BMP file that corresponds to your user account.
     
    (For example, if your user name is Robert, rename Robert.bmp to old_Robert.bmp)

    c. then rename the following folder:

    C:\Documents and Settings\All Users\Application Data\Microsoft account Pictures\Default pictures
     
    to something else, for example,.
     
    C:\Documents and Settings\All Users\Application Data\Microsoft account Pictures\No_Default images.

    Step 2:
     
    To remove the user name, follow these steps

    a. Click Start, click "RUN" and type "regedit.exe" and navigate to this key:
     
    HKEY_CURRENT_USER-Software-Windows Microsoft\------CurrentVersion-policies-Explorer

    b. in the right pane, the value NoUserNameInStartMenu-value data 1.

    c. close Regedit.exe and restart Windows.

    You'll find yourself with a blue area at the top of the Start Menu.

    Regarding the pressing 'F1' to start Windows, you have made no changes or was there a system crash after which the problem started?

    You may need to change the boot sequence in the BIOS to the default settings. I recommend you contact your PC vendor for this.

    Warning of the BIOS:
    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

  • When I go to a favorite websight how can I get the user id and the password to open the view without having to put in me? Barry was soon

    When I go to a favorite websight how can I get the user id and the password to open the view without having to put in me? Barry was soon

    Hi Barry,.

    Please contact Microsoft Community.

    It would be great if you can answer the following question:

    What browser you use on the computer?

    If you are using Internet explorer, I suggest you to follow these steps to turn on the AutoComplete feature and check if it helps:

    (a) open Internet Explorer.

    (b) click on the Tools button and then click on Internet Options.

    (c) click on the content tab.

    (d) under AutoComplete , click settings.

    (e) check the address bar, Forms, usernames and passwords on formsand ask me before saving passwords check boxes.

    (f) click OKand then click OK again.

    Let us know if this can help, and if you need further assistance.

  • Something going wrong on a server that contains information about your user account and the mailbox can not be found.

    Cannot open the e-mail.  I can connect on the MSN home page and when I right-click the outlook icon it shows the e-mail Inbox, but cannot access e-mail.  I just get this error

    "Something going wrong on a server that contains information about your user account and the mailbox is not found."

    This error is on the MS and they are aware and working on a fix.  Have you tried connecting mail.live.com directly using your e-mail address and the password?

    For later use, you would get more (and larger) response if you posted this in the Outlook.com (e-mail) section, where are the experts.

  • How to display the user id and the session on the form?

    Hi all can someone guide me how to display the user id and the session on the form? Please guide me

    Sarah

    Hi Sarah,.

    You can use GET_APPLICATION_PROPERTY (CONNECT_STRING) for this.

    BTW, have you tried search in forms online help? It has good examples explaining all the built-ins.

    Arun-

  • What I need to buy other products such as CC Photoshop and Lightroom for them to be integrated with creative cloud? Or do I have to understand that the versions of these products are delivered with the purchase of 9.99?

    What I need to buy other products such as CC Photoshop and Lightroom for them to be integrated with creative cloud? Or do I have to understand that the versions of these products are delivered with the purchase of 9.99?

    TC III

    The $9.99 rate is only for Photoshop and Lightroom. The entire Collection of CC is $ 49.99 per month.

  • On Windows 7, how to implementing automatic uppercase the first letter of the first book and the first letter after each period?

    I'm using Windows 7, how do I configure my system automatically capitalized the first letter of the first word and the first letter after each period?

    Thank you

    Lisa.

    Hello Lisa,.

    It's more to do with the word processor on Windows. You don't say what word processing software you use. If you use WordPad which comes free with Windows, it is impossible to do what you want to do. However, if you are using Microsoft Office Word (that you can buy) then the CAP is set by default.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • How to find the first Sunday and the second Saturday of each month

    Hi all

    How to find the first Sunday and the second Saturday of each month

    Thank you

    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production

    994122 wrote:

    Hello

    I need to pass the months parameter how to do this? like Jan, Feb etc... (one of those)

    Do you have a procedure?

    Should you output only for the months you passed in the parameter?

    The easiest way is to set the parameter as date. When you go such as p_date as DATE ' 2014-10-01', then you can

    PROCEDURE two_dates)

    p_date IN DATE

    p_first_sunday DATE

    p_second_saturday DATE

    )

    IS

    BEGIN

    p_first_sunday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-12', 'DAY'));

    p_second_saturday: = NEXT_DAY (TRUNC (p_date, 'MM') - 1, TO_CHAR (DATE ' 2014-10-11', 'DAY')) + 7;

    END two_dates;

    Or you describe what you need.

  • How to accept multiple input values using plsql

    I am in a process of design of a small tool. The tool must accept several input values. I know that this can be done using sql.
    But nothing, I can enter multiple values using the loop in the loop would be carried out according to the number of times a user wants to enter the values.

    It is also very good, if I can accept all the values at once and some how to analyze!
    SQL> set serverout on
    SQL> accept strings prompt 'input strings (comma separated):'
    input strings (comma separated):abcd,xyz,massimo,this,is,a,string
    SQL> declare
      2  s varchar2(32000):='&strings';
      3  begin
      4    for r in (select regexp_substr(s,'[^,]+',1,level) str
      5                from dual
      6              connect by level <= length(s)-length(replace(s,',',''))+1) loop
      7        dbms_output.put_line(r.str);
      8    end loop;
      9  end;
     10  /
    old   2: s varchar2(32000):='&strings';
    new   2: s varchar2(32000):='abcd,xyz,massimo,this,is,a,string';
    abcd
    xyz
    massimo
    this
    is
    a
    string
    
    PL/SQL procedure successfully completed.
    

    Max
    http://oracleitalia.WordPress.com

  • How to capture user input and display it in another text field

    Hey there,

    I create a simple screen that allows a user to enter text and I want to take what they get and appear in other fields of text on the same screen, so they do not have to retype. I'm using AS3. I read an article that gave me a few tips, but the code I use is not doing the job. I'm pretty new to Flash, so any help would be appreciated.

    Here is what I use:

    var Description: String;


    myText_txt.addEventListener (Event.ENTER_FRAME, assignText);


    function assignText(myevent:Event):void {}
    Description = myText_txt.text;
    }

    textResults_txt.text = Description;

    My thoughts after reading the article (I think it's from Ned) should follow the first text field, myText_txt and assign this text to the variable Description. Then I tried to assign the variable Description to another field of text called textResults_txt. However, when I type in the first text field, nothing appears in the second.

    Any ideas? Am I using the wrong method to monitor the text box?

    Thank you for your time.

    Stephen

    You don't want to lose an ENTER_FRAME for this.  You must assign an event listener for the input textfield that listens to a CHANGE event.  The event handler for this listener function will simply match the textfield in the first second.

    myText_txt.addEventListener (Event.CHANGE, assignText);

    function assignText(evt:Event):void {}
    textResults_txt.text = myText_txt.text;
    }

  • Collection of user input and store it

    Could someone help me with detailed instructions on how to do it. I have internet search and my huge Director books for hours for a kind of pre-packaged instructions on obtaining the user text entry, but no luck. I have my set interface in place and these are the pieces of info I want:

    Username (limited to 30 characters)
    Connection (between 6 and 15 characters)
    Password (between 6 and 15 characters)
    Password2 (must match the password)
    Correo electronico (must contain a sign @)

    I don't know if I'm supposed to use text field, or component of flashTextInput. And how can I make the character limiting and looking for a character? I know it must be editable. How can I then collect this information with a "submit" button and save it in a file encrypted with the buddyAPI? And then how to get some of these data items and use them in this film or another in the program?

    Thanks in advance.

    There are many ways to go about this, but I would like this:

    Use all members of #text. They are, for me, the simplest
    with the most options.

    Text sprites need not all all scripts. Do just a "submit."
    a button that performs the audit. Something like that, you should get
    on the road:

    on mouseUp me
    If member("username").text.char.count > 30 then
    alert "user name must be 30 characters or less.
    Pass
    end if

    If member("login").text.char.count > 15 may
    alert "Login must be 15 characters or less.
    Pass
    end if

    If member("login").text.char.count<6>
    Alerts "Login must be at least 6 characters.
    Pass
    end if

    If member("password").text.char.count > 15 may
    alert ' password must be 15 characters or less.
    Pass
    end if

    If member("password").text.char.count<6>
    alert ' password must be 6 characters or more.
    Pass
    end if

    If member("password").text<>member("password2").text then
    alert "the password fields do not match"
    Pass
    end if

    in the opposite case (contains the member("email").text '@') then
    alert "Email field must contain a sign @.
    Pass
    end if

    baWriteIni ("info", "username", member("username").text, la)
    moviePath & "settings.ini") "
    baWriteIni ("info", "login", member("login").text, la)
    moviePath & "settings.ini") "
    baWriteIni ("info", "password", member("password").text, la)
    moviePath & "settings.ini") "
    baWriteIni ("info", "email", member("email").text, la)
    moviePath & "settings.ini") "

    baEncryptFile (the moviePath & "settings.ini", "SuperSecretKey).

    Go "frameThatYouGoToIfEverythingIsGood".
    end

    That's all. It will throw an error if something went wrong and if
    It's everything is correct it will write in the settings.ini file and encrypt
    He read these settings, you must decipher using the same
    BaReadIni SuperSecretKey and the use of out the setting. Then you'll
    You probably want to re-encrypt as soon as you have finished reading.

  • Get popupscreen user input and store it in the variable

    Hello world. I have a screen that is pushed to start the application

    pushScreen (new SPScreen());

    In the constructor of the form, I push an extension of popupscreen in the stack to get an int from the user through TextField amount.

    UiApplication.getUiApplication () .pushGlobalScreen (new SplashScreen(), 1, UiEngine.GLOBAL_SHOW_LOWER);

    In the popuupscreen, I store the entry under int amount;

    public void fieldChanged (field field, int context) {}

    name = nameTxt.getText ();

    quantity = Integer.parseInt (amountTxt.getText ());

    Close();

    }

    };

    Now I want int amount; in my screen to shoot the user supplied value and whenever you click on a button Add the amount in total, each time increasing the total amount.

     

    public static int amount;

    total int = 0;

    ...

    amount

    = OptionScreen.amount;

    Total = total + amount;

    No matter how many times you press the Add button it only changes the total amount. For example, if I enter 6 as the quantity and press the button 3 times I want the total 18 years, but the total is still only 6.

    I'm sure there's probably a way to pass a reference to the variable, but I have a similar situation where I have a variable which is accessible by a certain screens and can be changed in multiple screens as well.  I delcare a class called globalVars and put the variable.

    public class globalVars {
    
        public static int total;
    
    }
    

    Do only access you anywhere with globalVars.total.

    Kind regards

    Scott

Maybe you are looking for