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

Similar Messages

  • 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.

  • 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

  • How do I change the name property of a file in a document library?

    I am trying to come up with an Event Receiver that will change the name property of an file when it is uploaded. For instance when a file is uploaded into a document Library, currently the Title is being generated (which is fine)...I want to be able to
    change the "Name" property from whatever it is, to match exactly what is in the "Title" property. Are there any sample codes/blogs out there that I can take a look at? Has anyone  had any experience doing this? It seems like something
    that should be straight forward, to change the "Name" property to match what is in the "Tilte" property.

    Hi,     
    You can try the code below which use the SPFile.MoveTo() function to change the name of the file.
    EventFiringEnabled = false;
    SPFile f = properties.ListItem.File;
    string spfileExt = new FileInfo(f.Name).Extension;
    f.MoveTo(properties.ListItem.ParentList.RootFolder.Url +
    "/" + properties.ListItem["Title"]+ "_new" + spfileExt);
    f.Update();
    EventFiringEnabled = true;
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5cafb8e4-bb85-4147-9bda-4ab42a4d4817/sharepoint-2013-event-receiver-to-rename-files-not-working?forum=sharepointdevelopment
    A link about rename uploaded file using Event Receiver for your reference:
    http://paulgalvinsoldblog.wordpress.com/2008/01/25/quick-easy-rename-uploaded-file-using-sharepoint-object-model-via-an-event-receiver/
    Best regards
    Patrick Liang
    TechNet Community Support

  • 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!

  • 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

  • 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.

  • To Change the Readonly Property

    Hi,
    In Portal  Personal data Screen for belgium , Country of Birth field (Drop Down Box) is  Read Only.
    We have to change the readonly property.
    I tried through iView personalisation ,the property of that field is Not readonly.
    2) In the WD java Application  the field property is  NORMAL .
    3) I have checked in V_T588MPROPC, there also we dont have any entry for this field.
    In Backend ECC this field is editable ,
    Can any one please let me know where should i will change to make this field as Editable.
    Regards
    Alexi

    Please check the following tables:
    V_T005
    V_T588MFPROPC
    V_T588MFPROPS
    T77WWW_SC
    V_T582ITVCHCK
    Note 1498555 - How to make a field mandatory or optional in ESS
    "V_T588MFPROPC only makes the field mandatory, optional or unused
    by the back-end business logic checks it will not change a
    UI display property like Read-Only
    You could try the Personalization options - Ctrl and Right
    mouse button over the UI element (either in the browser
    or in a PCD preview - for global changes for all users)
    - please check there for options to change the country
    field to editable
    However I suspect the field is read-only because
    1) You are on a lower release than EHP3 -foreign address
    maintainence via Country field is only available
    as standard from EHP3
    2) You do no have EHP3 business function HCM_ESS_CI_1 switched on
    these business functions activate foreign address functionality
    3) You are editing a record - try instead creating a new record
    4) Inconsistency in V_T7XSSPERFORADD - check this against client 000
    Hope this helps identify the problem

  • 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

  • Can not change the field property - 10gR2 reports crashing on Linux :(

    All I want to do, is to change one field's property from NUMBER to DATE in the property palette. It does not allow me to do it (not east like forms). I can not change the field property - 10gR2 reports keep crashing on Linux :(
    I don't know if this is a Linux specific iDS issue, or a generic one.
    What are the proper steps to change one field (in my query, the field name is ptime, it was defined as a number field originally, and now I need to change it to DATE and apply the proper format mask). The matching database field definition was modified from number to date.
    very frustrating...
    Any input is appreciated.
    Message was edited by:
    zaferaktan

    nop, did not change anything in the select statement at all. Just selected the related query under the data model (in the navigator), then selected the related query from within the property panel, connected to the db, then from the related navigor menu selected compile all, when the related query was highlighted (selected). Then I saved it, checked the groups, and bingo - the datatype was changed from number to date. Then I went to the related object under the page layout and applied the format mask (that was another funny story). And it worked. It is not as flexible as the forms for sure - pain in the a.. And I still don't know why Reports Builder keeps crashing on Linux - have no problems with Forms Developer on Linux at all. It is a certified RH platform with all the required libs, rpms, etc installed. I am certain it is not an installation issue. Maybe I should check Metalink and apply if an iDS 10gR2 patch exists for reports.

  • CS6 it is being hanged attempting to change the font property

    Hi,
    I am working on Flash CS 6 is working fine but one issue i am facing all the time while working on any file whenever i am attempting to change the font property (like from arial or verdana etc.) it is being hanged for few moments like 1 to 2 minutes.
    Can help in solving this issue.

    You're at the point where you've done every other rational thing to solve the issue. If you have no issue using font drop-downs in any other Adobe or any other app and have reset Flash to defaults, have no font manager or any corrupt settings, I'm out of suggestiong.
    Since Flash is basically back to default install status, that's the last recommendation I could make. If you reinstall Flash and you still have the issue, this is something Adobe support may need to jump in on. There has to be a difference between your environment and everyone elses, only you know what that is. If a fresh install of Flash doesn't work, there's an environment issue.
    Are you using an encrypted filesystem or have you manually copied any web fonts into your Windows font directory (where typically they're colored green) and have not clicked 'Unblock' on the file? Windows can sometimes mark downloaded files as dangerous until you view the file properties and click to 'Unblock' it. It's down to this level of "some small thing" that's causing this odd hiccup for Flash.

  • Error trying to change the value property of a cell with decimals

    This is a script question.
    I’m using a system defaulting to Spanish, so the decimal delimiter is the comma.
    During a script I need to change the property value of a cell multiplying it by -1. As an example, I want to change 1,25 into -1,25.
    This is how try to do it:
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
    set selection range to first cell
    set mi_cell to (value of first cell of selection range) * -1
    set value of first cell of selection range to mi_cell
    end tell
    The expected result is wrong provided that the original value of the cell has decimal value. Otherwise is correct.
    See examples of what happen after running this piece of the script:
    1,25 becomes -125,00 instead of -1,25
    6,00 becomes -6,00 (in this case is correct)
    Does anybody know how to solve this problem?
    Thanks in advance.
    Ratz

    This was described here in several scripts.
    Before setting the value of a cell to a number or a date, the value must be coerced to a string.
    It's the only way available to take care of localization features.
    Your script must be
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
    set selection range to first cell
    set mi_cell to (value of first cell of selection range) * -1
    set value of first cell of selection range to mi_cell as text
    end tell
    or better
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
    set mi_cell to (value of first cell) * -1
    set value of first cell to mi_cell as text
    end tell
    CAUTION : don't code
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
    set mi_cell to -(value of first cell)
    set value of first cell to mi_cell as text
    end tell
    which is supposed to do the same but would return the opposite of *_the integer value_* of the cell.
    Yvan KOENIG (VALLAURIS, France) dimanche 13 février 2011 16:06:39

  • How to change the caption in data entry selection screen??

    using cats0009 i populated the data into wbs desc and a/a desc but
    but i am not able to change the name(caption of additioanl field) as 'wbs description'. and A/A desciption.
    can anyone please help me out how to do this...

    You don't mean selection text do you? Can you be more specific?

  • Batch change the same property of some steps in Teststand3.1

        In Teststand, Test steps like "numeric test","pass/fail test". There's a "run option" in their property dialog, which enable or disable to record results. Sometimes, I need to diable/enable its function together with several steps. I prefer to see a batch method, that is to say, select multiple stpes, then open property dialog and diable them. Unfortunately, current Teststand could not do this only once, but have to slect one and disable one. Is there any better ideas?
      Thanks
      Jacky

    Hi,
    All you need is a sequence, set up in you Tools menu, to pick up the selected steps and change the each of the selected step's proeperty for the reports (Step.TS.NoResults).
    You would look at the RunState.InitialSelection.SelectedSteps which is an array, the size of which will give you the number of selected step. Then loop through the array changing the Step.TS.NoResults.
    There are examples on the NI Website that loop through a sequence, eg http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EE5556A4E034080020E74861&p_...
    (which gets the step name)
    There are application notes for setting up the Tools menu.
    Hope this gets you going.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can I change the value in a textfield

    I have some problems with the component textfield.
    For example, if I want to change the value when ocurr event, how can i do that?
    I need that in a several textfields appear the values of a select sql consult, plz help me its more important

    Hi,
    I have tried it works for me, Here is what I did
    1. Drop a textfiled on to the page
    2. Drop a button
    3. In Button action handler put the code as
    textField1.setValue("Creator");
    4.deploy and run the application
    Even I tried with more than one textfield and it works fine.
    ie , textField2.setValue("Sun Java Studio Creator"); in the same button action.
    MJ

Maybe you are looking for

  • Macbook Pro not transferring files from my old Macbook's g-drive that used Snow Leopard...I need help!!

    I just bought a macbook pro yesterday (13 inch) from the Apple Store due to my old 2007 macbook (the 13 inch white one) running slow because of the applications I used. I transferred the old files, and backed all of them up on the 500gb G-Drive exter

  • Freezing and issues on STB Model QIP7216

    So I've had Verizon FIOS now almost a year. I'm on a QIP7216 STB running version 1.7. I've been experiencing problems in the following areas; • Recorded programs freeze upon play back. STB also seems to freeze momentarily hang until last command can

  • Some interfaces are not shown in the sxmb_moni

    Hi all, We are facing the following scenario:  we have one interface in XG1 (development environment) which is very simple: it consists of a sender ‘File’ and a receiver ‘IDOC’. The file format has been double checked and apparently is what XI define

  • I am having trouble exporting my file as a pdf.

    I have a document which I am creating in indesign, about 100 pages long, with images, etc. Each time I try to export it as a pdf it crashes, and then when I try opening the pdf the error message comes up saying that Adobe reader could not open this f

  • Nokia 5530

    Hi I could really do with some help in setting up the email on my nokia 5530. I have followed all the instructions but as soon as I try and connect to send a email it says its unable as packet data not available. Have tried searching all the sites an