Change the caption of a TextField with JavaScript

Hi,
I'm working on an multi language form with the Livecycle Designer 8.2.
My form includes a couple of Text fields with captions in English. I've implemented a button to change the language of the captions into French through a "click" JavaScript Event.
But I'm still not able to perform the caption language change with my code:
Myform.multilang.bt_english::click - (JavaScript, client)
xfa.resolveNode("tf_site.caption.value.#text").value = "French Caption";
Has there anybody an hint for me?

Is you form a dynamic or static PDF? Ensure that it is dynamic.

Similar Messages

  • Change the caption property to TextField

    Hi
    I have a TextField
    I need to change the value of it Caption Property in Run Time
    Who is that?
    Thanks all

    You can do this using some simple JavaScript or FormCalc script on an event.
    Let's say you wanted to change the caption of a field at the click of a button. You could use the following JavaScript on the button's Click event:
    TextField1.caption.value.resolveNode("#text").value = "test";
    You could also use the following FormCalc script:
    TextField1.caption.value.#text = "test"
    I've attached a sample form which has a button and a text field on it. Clicking on the button will change the text field's caption to "test".
    Stefan
    Adobe Systems

  • How to change the caption of a field with a button?

    I have serious trouble, don't know why, in order to change the caption of a field.
    I can't do it with a button as in any other way...dropdown list, ecc...
    Assumes that we have a button and "on click" i want to change the caption of a numeric or text field.
    form1.ppp.Button1::click - (FormCalc, client)
    NumericField1.caption.value.text.value = "whatever you want to set it to";
    TextField1.caption.value.text.value = "whatever you want to set it to";
    xfa.form.form1.ppp.NumericField1.rawValue = xfa.form.form1.ppp.NumericField1.rawValue + 1;
    The numerical value inside the numericalfield1 is increased each click...but the caption still the same.
    Why this happen?
    I check many threads on this forum and on google and i still find these samples...
    please help.
    Thank you

    Yes, it is. Also in preview i checked "dynamic XML". is it right?
    i try to download this sample while searching in the forum to solve my problem
    https://acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q
    i try to add to that form my code and it's work!! i can't undersand why...
    Below you can find my PDF...i can't understand why here the same code doesn't work
    http://www.hsc350.it/download/Untitled2.pdf
    Thank you again!

  • How to change the label of a component with javascript?

    Hi, i need to change the label of a component dinamically. I tried:
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_ID_USUARIO_DEST').label = 'otro texto:';
    but doesn't work.
    any ideas?
    Edited by: Andres Vilallave on 16-mar-2010 12:49

    Hi,
    I think "label" is not valid attribiute for "input" tag.
    Create new hidden item P34_LABEL. For item 'P34_ID_USUARIO_DEST', put label value as +&P34_LABEL.+
    Now try the following JS
    <script>
    if (document.getElementById('P34_ID_OPERACION').value==2) {
    document.getElementById('P34_LABEL').value = 'Encargado:';
    if (document.getElementById('P34_ID_OPERACION').value==3) {
    document.getElementById('P34_LABEL').value = 'otro texto:';
    </script>Cheers,
    Hari

  • Ghost text is changing the caption to gray italics

    I'm using this script:
    form1.page17.table1.Table7.Row3.DateField6[0]::enter - (JavaScript, client)
    this.fontColor = "0,0,0";
    this.font.posture = "normal";
    form1.page17.table1.Table7.Row3.DateField6[0]::exit - (JavaScript, client)
    if (this.isNull)
      this.fontColor = "153,153,153"; // a gray colour
      this.font.posture = "italic";
    form1.page17.table1.Table7.Row3.DateField6[0]::prePrint - (JavaScript, client)
    this.format.picture.value = "";
    form1.page17.table1.Table7.Row3.DateField6[0]::postPrint - (JavaScript, client)
    this.format.picture.value = "";
    form1.page17.table1.Table7.Row3.DateField6[0]::ready:form - (JavaScript, client)
    this.execEvent("exit");
    this.format.picture.value = "null{'" + this.assist.toolTip.value + "'}";
    That I gratefully found at this blog: Adding Ghost Text to LiveCycle Designer forms on the adobe.cookbooks.com web site.
    I can get the ghost text to work just fine, however when I just used it in a TextField, it changes the caption to the gray italic text. What is causing this and how do I correct?
    Thanks,
    MDawn

    Hi Margaret,
    Sorry about that, mouslander is right the line "this.caption.font.posture.value = "normal";" should have been "this.caption.font.posture = "normal";" without the .value bit
    If you want to do this in Designer, you can with the Font palette.
    Click the little arrow and update the Value to italic and the 40% gray (153,153,153) and set the caption to black, normal.
    Regards
    Bruce

  • Can I change the captions font?

    Is it possible to change the captions font in PSE5? Also, is it possible to change the location of where the caption prints on photos? If so, how is this done?

    > In the User Guide it is in Chapter 8, Managing files and catalogs. The section heading is "Adding captions and notes."
    Yes those are Creations - I believe that one is a slide show and the other is a calendar.
    When doing the PRINT (click on printer icon), then choosing Individual as the type of print and checking Caption in the options, I believe that the only choice is to have the caption printed below and to the left of the photo.
    Are you using the entire page of paper after you print or are you cutting out prints - like multiple 4x6 prints from one piece of paper?
    If you are using the entire page of paper, then try this - start with CREATE and then choose PHOTO LAYOUT and pick a simple layout with no background. After the layout contents display you will have the ability to place the text wherever you wish ON the photo as well as change the color and the font.
    You will be working in the Editor workspace for the Photo Layout and if you have never used the Elements Text Tool it may seem a little strange at first.
    Now with this photo layout you can do more complex backgrounds and embellishments. However if you do not choose any background when you start the photo layout, it will look similar to doing a Print.
    So I suggest that you look at the Photo Layout function and see if it looks like it will be beneficial for you.

  • Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Can we translate in captivate 7? I Have tried and changed the Caption and Notes. Can we change the on screen text of te normal slides, interactive call out boxes, screen recording slides and quizzes? If yes, please let me know the process.

    Of course! Here ya go
    For the record, I did create a new project with only two slides to try and duplicate the issue. I had the same problem. I unchecked the Mouse Click Sound check box, republished and the slide auto advanced. I'm wondering if a default sound file was somehow moved or deleted? I discussed uninstalling and reinstalling C7 onto my laptop, but that's a frustrating solution haha

  • Does the caption descriptions export along with exporting slideshows?

    Does the caption descriptions export along with exporting slideshows ( iPhoto 09)?

    George,
      It sounds like the approach you are using is the correct one. This seems to be the cleanest solution to me especially since the customer is able to modify the generated SQL statements for their new system.
      In order to preserve the AutoInc values I would recommend altering the table and changing the field datatype from AutoInc to Integer. Then export the table as code which will export the actual values. After the tables have been created on the new system they can change the field datatype back to an AutoInc type if necessary.
    Regards,
    Chris Franz

  • For FaceTime, can you add an additional e-mail that is not your Apple ID e-mail?  Everytime I try to do this on my iPad it sends me a verification e-mail saying I am trying to change the e-mail address associated with my apple ID and wants me to verify.

    I am trying to add another e-mail address to FaceTime, but do not want to change the e-mail address associated with my Apple ID.  Everytime I try to add the e-mail address in my FaceTime settings, it send me a verification e-mail asking me to verify that I want to change to this new e-mail address for my apple ID.  I do not.  I just want to have an additional e-mail address for people to contact me via FaceTime. Does anyone know how to do this?

    You can have multiple addresses associated with your apple id. You will have to verify any changes before they can be added and this is done by sending you an email. This is to protect you from someone else makeing changes to your account.
    You can make any changes and view all your info here:
    My Apple ID
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • Recent software upgrade has changed the way my iPhone syncs with my macbook, and diary items no longer upload from my iPhone. I've tried a to fix it and seem to have made things worse. What is the best way to get the two devices in sync ?

    Recent software upgrades has changed the way my iPhone syncs with my macbook and items entered on my iPhone are no longer uploaded to my macbook. I've tried to fix it and seem to have made things worse, my iPhone now has a long list of calanders that I don't want and can't delete and nothing is uploading to my macbook.

    You need to look at Mac's iTunes, check  > System Preferences > iCloud.
    If you use iCloud for Calendar, Contacts then turn off those items in iTunes, Info tab with your iPhone connected and selected.

  • Impossible to change the Fontsize for a Radiogroup(with Submit).

    Impossible to change the Fontsize for a Radiogroup(with Submit).
    I have a Menue displayed from a Query like (select menue_title, id from lov_tabel)
    and displayed in a Report Region as a Radio group with Submit.
    The problem is, i've not been able to change the font size.
    What i' have tried.
    - Change the color works if i change "+Page Item"-> Element -> HTML Table Celle Attributes+ to
    style="font-size:1.2em; color:#CC00CC" I see the new color but NO change in font-size.
    - If change in Application-> Shared Components-> Templates
    copy the Template "Reports Region" to "MenueReport",
    then change on "MenueReport"->Template
    value to      <table class="t6ReportsRegion" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# summary=""
         *style="font-size:1.2em; color:#CC00CC; font-family:Verdana"*>
         <tr><td class="t6Header">#TITLE#</td></tr>
         <tr><td class="t6ButtonHolder">#CLOSE#   #PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</td></tr>
         <tr><td class="t6Body">#BODY#</td></tr>
         </table>     option style="font-size:1.2em; color:#CC00CC; font-family:Verdana" inserted
         and then change in the template for the report region the Option
         Edit Region->User Interface -> Template to "MenueReport".
         I see a new color but NO font-size will be changed!
    - I have changed the query to     SELECT  ' <font size="4">' || rt_name as x, rt_nr  FROM report_types order by rt_nr     But there is NO change of font size, and the Tag <font size= .. is deprecated.
    Used Version is Apex apex_030200 with Firefox 3.5.5 Windows.
    After all this failed attempts, i have no idea how to change the font for page to a larger size.
    Can anyone help me and explain how to change the font size in Apex for a Radiogroupe?
    Thanks in advanced
    Dieter

    Assign a [static region ID|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/ui.htm#sthref1438] to the region containing the radiogroup.
    Place the following code in the HTML Header page property, replacing static-region-id with the ID given to the region:
    <style type="text/css">
    #static-region-id label {
      font-size:1.2em;
    </style>after that how do we need to call this css
    and does it need to be called within the Region HTML table cell attributes of a region or in the HTML Form Element Attributes of the radio group items
    >
    CSS isn't "called". Learn how [themes, templates|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#CJABAEIE] and CSS are used to control the appearance of APEX applications.

  • Is there a way to restrict changing the browsing history in safari with ought restricting the entire application?

    Is there a way to restrict changing the browsing history in safari with ought restricting the entire application?

    For the iPod touch in your profile?
    Private browsing help here >  iOS:  Safari web settings
    For Safari for Mac OS X ...
    From your Safari menu bar click Safari > Private Browsing
    You can only block all history in Private Browsing, pages you visit, and autofill.

  • Can I change the Caption (name) of the button Go for the dashboard prompt

    Hi,
    Can I change the Caption (name) of the button Go for the dashboard prompt
    I need to change the name of the button to Set Prompt Values.
    i did not see an option to do this
    Thanks

    Hello Yusuf,
    First follow the forum Etiquette, see this http://forums.oracle.com/forums/ann.jspa?annID=939
    You have to close the answered threads...
    And regarding your question
    Go to *{OracleBIDir}:\oraclebi\web\msgdb\l_en\messages*
    Open globalfiltermessages.xml file.
    Find this text
    <WebMessage name="kmsgGFPGo"><TEXT>Go</TEXT></WebMessage>Now edit the Go which is there between the TEXT tags..
    Ex: i am editing Go to Confirm
    <WebMessage name="kmsgGFPGo"><TEXT>Confirm</TEXT></WebMessage>Save this file and just restart your presentation service.
    Check your dashboard prompt now...
    (Editing this post from here)
    As per your requirement edit should be:
    <WebMessage name="kmsgGFPGo"><TEXT>Set Prompt Values</TEXT></WebMessage>Edited by: Kishore Guggilla on Jul 18, 2009 2:45 AM

  • When I create a rectangle, I can not to change the shape of a rectangle with the cursor in illustrator CC 2014 For what?

    When I create a rectangle, I can not to change the shape of a rectangle with the cursor in illustrator CC 2014 For what?

    Xavigarcia,
    I am afraid you have come across the Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks) or 10.10 (Yosemite). Hopefully, the bug will be fixed soon.
    So a switch to Mavericks or Yosemite with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • How can I change the payment method to None with gift card balance.

    How can I change the payment method to None with gift card balance?
    I already have an Apple ID account with no credit card but when I try to log in download free app it says Apple ID has not been used in iTunes store please review your account and it appears the billing info and there's no none in the option..how can I solve this so that I can used my Apple ID and can download free apps?

    Hi ..
    Help here >  Why can’t I select None when I edit my payment information?HHi

Maybe you are looking for