Change the text of a button in a form on the fly

Hi all,
I have a form that it is called from another form or from a report. I would like to change the text of the Update and Save buttons on the fly depending on who called it. For instance, if this form is called from the form I would like the Update button to say: "Save & Next", however if it is called from the report the button should say: "Save & Back to Report".
How could I accomplish this if it is possible.
Thanks

I've got the problem fixed. For any of you that would like to know the solution is this. I added the following javascript at the end of an unstructured UI template where I have the form:
<script language="JavaScript1.1">
var inURL = false;
for (i = 0; i < document.all.length; i++) {
     if (document.all.name != null) {
     if (document.all[i].name.indexOf("BACK_URL") > 0) {
               if (document.all[i].value != '') {
                    inURL = true;
          else {
               if (inURL) {
                    if (document.all[i].name != null) {
                         if (document.all[i].name.indexOf(".UPDATE") > 0 || document.all[i].name.indexOf(".SAVE") > 0) {
                              var doc = document.all[i];
                              doc.value = "Save & Back to Report";
</script>
The script works in IE 6+, I don't know if it works in any other browser, I haven't test it and I don't think I will.
I hope this could help somebody

Similar Messages

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • Create a duplicate of a button and change the text on THAT button only

    something is frustrating me w/Flash. Not sure if there is a workaround within Flash itself or not. I have a group of buttons with fancy backgrounds and text. They may have originally been imported from Ilustrator, but are now MC's. I tried to select one in the library, right click (on PC) and duplicate. This does create a new instance. I give the new instance a different name and drag onto the stage. When I change the test though it changes the text ALSO on the button which I duplicated from. Don't want this. Each button needs to have it's own unique text. Is there a way to accomplish this in Flash? I know one alternative is to try and find the Illustrator template and create a new one, but I would rather not do this if possible.
    TIA

    This could be happening for a couple of reasons. The good news is its easily fixable, and you have options.
    Option 1.
    From your explanation of the problem I am assuming you are using static text inside your MCs.
    First, find out what's really happening with your two mcs.
    make sure you aren't using 2 of the same clip (either the original or the duplicate).Not the  instance names, but the actual names of the clip as found in the Library.
    If they are different, i.e. "myclip" and "copy of myClip", then odds are there is another mc that holds your text inside them. So, go into either one of your movie clips and check for nested movie clips inside them. If there are nested clips, you need to duplicate each of those clips as well otherwise you will continue to have the text change in both.
    Option 2.
    if you are ok with a little bit of scripting, you can just go inside your mc and make your text fields "dynamic" and give it an instance name.
    then open up the actions panel, create new layer, and add the following frame script:
    //insert your instance names where necessary
    myMC.pathToMyTextField.myTextField.text = "the text for this button";
    do this for each button and it should fix your issue.
    hope this helps.
    M.

  • I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opnes up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboa

    I have a PDF with a diagram, I need to translate the text so I open it in Illustrator.  The document opens up vertically oriented  I try to put it horizontal to be able to read and change the text  However everything I have done is not working  The artboard does change, but the diagram stays vertical.....Please help  I need to finish that for today..Please help

    A PDF usually consists of one to an indefinite number of clipping masks inside each other.
    You need to be very carefull with selecting stuff.
    So you need to read the manual on how to select stuff and on the basics of Illustrator.
    On top of that: because of the complex hierarchy of PDF files, it is kind of difficult to help you without seeing anything.

  • How to change the Text  description on screen...(not the Data Element)

    I want to change the just text of one of the label on one of the screen. I don't want to change the Data Element, as the same data element is used in multiple places, but I want to change only at one particular screen, at one particular spot
    Any suggestion....?

    a)If you change the Text in a LABEL manually, then translation of the text can't be done.
    Better create a new structure which will be used in all such cases where u can't change the data element.
    Create fields in the Structure with your newly created data element and refer the field in the Label.
    b)IF the translation is not an issue then manually enter the text.

  • How to directly change the text of a tree node once its in the tree

    How can I directly change the text of a tree node once its in the tree.
    I have a property box which fires an eventevery time it is edited
    (this is currently just output to the screen via println)
    What i want is for the tree node to take the updated text that is in the text box every time
    thus giving tree labels that update as you type
    PS. i have access to the tree node (DefaultMutableTreeNode) from the code that hanldes
    the text box event

    ... use the setUserObject() method of your DefaultMutableTreeNode, that'll set the text of the node.
    however, you probably need to do a treeModel.nodeChanged(node) with your tree model, to get the display updated.
    thomas

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • The text in a lot of my books I have downloaded in IBooks has disappeared. It is mostly the older books on my IPad.  The books are there but the text is missing. How do I get the text back?

    On my IPad, the books I have downloaded are there; however, the text has disappeared. It only happened with the books that were older. Any idea how I can get the text back on these books?

    Try closing the iBooks app. Press the home button to get to the home screen if you're not already there. Then double click the home button. Locate the iBooks icon at the bottom. Hold your finger down on it until a red minus appears. Tap the red minus. Press the home button to return to normal. Then relaunch iBooks.
    If that fails, delete the books, then you can redownload them under the Purchased tab in "Store."

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • I'm creating an epk and I need to add a bio to the menu.  Can I import the text file or do I need to retype the bio somewhere?  What is the best way to proceed?

    I'm creating an epk and I need to add a bio to the menu.  Can I import the text file or do I need to retype the bio somewhere?  What is the best way to proceed?

    Electronic Press Kit.
    Usually in the form of video outtakes, movie trailers, cast and crew interviews. Basically, the stuff that gets bunged onto commercial DVDs as extras or ends up on late night TV "Making Of..." shows.
    To answer the OP, you want a button on the menu that leads to a still image, or series of them, set up as a slide show. You can copy/paste the text in DVD Studio and then add formatting via the Text menu. (Highlight the text and right click to access formatting controls). Or do it in a graphics application using the appropriate video image preset.

  • G'day, i am trying to type into an adobe document using the typewriter function. However everytime after i type the text vanishes. It is almost as if the text is white and vanishes into the background. However this is not the case as the works are not vis

    G'day,
    I need some help, i am trying to type into an adobe document using the typewriter function.
    However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
    This is not the case as the works are not visible regardless of the background color.
    The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
    I would appreciate any help i can get, i cant seem to do anything using properties or view.
    Thanks 
    Tiernan

    Hi Sara,
    See response to your questions below:
    1.     Are you running into this issue in a specific PDF, or in all of them?
    A.     All of them
    2.     What version of Acrobat are you using (and, are you on Mac OS or Windows?).
    A.     Using Acrobat 10.0\Acrobat on Windows
    3.     If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
    A.     Test swatch for the text is black
    4.     What happens if you change the text color?
    A.     Nothing.
    I look forward to hearing back from you.

  • How can I stop the program from going through all of the text previously put in.  It is making the process very slow.

    How can I stop the program from going through all of the text previously put in.  It is making the process very slow. 

    while True:
    and just indent everything else under it
    Ends when you press ^C.
    if you wish to have a way to break out of the loop, say, when you press enter at the VPC number without entering anything, add the following after your vpc input:
    if not vpc:
    break
    which will break out of the while loop and end your program.
    Last edited by buttons (2007-12-14 22:03:06)

  • The text on web pages fades as you scroll the page, it reapears if you click refresh or move the mouse arrow over it. I reset FF still doing it.

    The text on web pages fades as you scroll the page, it reappears if you click refresh or move the mouse arrow over it.
    I went to many different web pages and it does it on all of them including this one.
    I went to the same web pages using IE 10 and the text does not fade away.
    I reset FF still doing it. I uninstalled and reinstalled FF still doing it.
    What could be wrong?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • How would I be able to pull up all of the text messages tat were in my phone over the course of 2 years and back them up to my computer since my phone has a broken screen and can no longer read the mesages.

    How would I be able to pull up all of the text messages tat were in my phone over the course of 2 years and back them up to my computer since my phone has a broken screen and can no longer read the mesages.

    If the messages are stored on the device and you can power the device up you can use the application posted at https://community.verizonwireless.com/thread/770529  , the application has a screen capture option and you can use the screen as a guide to install MyBackup from Market or a number of backup apps from Market and then you can run the applications and backup data to your SD Card to restore to the replacement device.

  • I am using my Description as the caption on Slideshow.  I ticked the "Show Title Slide" button and iPhoto physically copied the description on the first slide onto the end of every other description.  I can find no way of removing them other than by hand.

    I am using my Description as the caption on Slideshow.  I ticked the "Show Title Slide" button and iPhoto physically copied the description on the first slide onto the end of every other description.  I can find no way of removing them other than by hand.  Unticking the "show title slide" did not reverse the situation back to my required state.   Any ideas why it might have happened or how it might br resolved?   Regards, Marshfrog1

    Attached is Dennis Linam’s Audition – “Log File” and “Log – Last File”
    Contact information Dennis [email protected]
    Previous contact information with your organization (DURIM):
    Dennis - i just finished my audition trial and bought the subscription the 2014 version.
    created by durin in Audition CS5.5, CS6 & CC - View the full discussion 
    DURIM - Okay.  I would expect the "Cache Warning" message because your default directories would not be the same as the ones in the settings file I generated.
    If you go back to the "7.0" directory and open the "Logs" folder, can you copy the "Audition Log.txt" file and send it as an attachment to [email protected]?  We'll take a look in that logfile and see if it gives us more information about why this is failing now.
    Also, do you have any other Adobe applications installed on this machine, such as Premiere Pro?  If so, do they launch as expected or fail as well?
    I do have the trial Pro version of Adobe reader, but I have not activated it, because I fear the same thing will happen did it. I cannot afford to activate the subscription for that product and take the chance of it not working either. I depend on those two programs religiously. Here is the files that you requested. I appreciate any help you can give me to get this audition program started
    Audition Log- file
    Ticks = 16       C:\Program Files (x86)\Common Files\Adobe\dynamiclink\7.0\dynamiclinkmanager.exe
    Sent from Windows Mail

Maybe you are looking for

  • How to setup a ProxyPass Virtual Host

    On my server which i will call server.server.com I run jenkins a service that runs on port 8080. I would like to have the virtual domain jenkins.server.com proxy from port 80 to port 8080. from the linux world i would use: <VirtualHost *:80> ServerNa

  • Remove partitions from a Hard Drive

    I am using Win 8.1 Pro.  I am taking a harddrive from another computer which as a boot partition and 2 other partitions.  I would like to completely reformat the drive to remove the partitions so I end up with just one partition of 500MB ( which is t

  • Import directly to time capsule

    i'm looking for additional hard drive space for image storage. Two questions. Is it possible to set up time capsule as a stand alone hard drive? and can aperture be configured to import directly to time capsule?

  • Caluclate time for insertion

    hi , Heads up : oracle 10g I have insert SQL script for insertion into table , It takes long time to insert into table. I have tried loading by disable indexes , but some how want to discard that process and want to narrow down on how a batch of 100

  • Iphone 4G syncing stalls with Info and Status files. File type is QuickTime Preferences.  How do I fix this?

    iTunes syncing won't complete.  I monitored the backup file and it stalls at the Info & Status files.  They have a File Type of "QuickTime Preferences".  How do I correct the problem?