JavaScript to make button invisible button visible again

Hi
I have been trying to create a form in LiveCycle Designer (part of Acrobat Pro ) that keeps a button (call it #1)invisible until another button (call it #2) is clicked, at which click event the invisible button(#1) becomes visible. I've been using JavaScript and either setting the #1's presence as "invisible" in the object editor or scripting it as a formready event presence = "invisible". I've scripted in the click event for #2: #1.presence = "visible". This doesn't work to get #1 to show on #2's click. I've tried a few more similar script with no success.
I'm relatively new to Designer, though have some experience with JS.
Is there another way to script to initially make an object "invisible" and get it to become visible by a runtime event?
I would appreciate any help.
Kind Regards,
Stephen

Template needs to be saved as Dynamic in order to see those dynamic features working. You have that saved as Dynamic and still have no luck try the following....
#1.presence = "visible";
xfa.layout.relayout();
Note: 1. A button name can not start with "#" hope you are using some meaningful names.

Similar Messages

  • No property to make htmlb:button invisible or visible??

    I am working on a jspdynpage proj where I need to make htmlb:button visible/invisible at runtime.. is there any property?

    Hi Kiran,
         You can use Java Script to make this happen. To make invisble or to disable use the following
    <input style="visibility:hidden;" type="button" value="Hello world!" disabled> . You can get the attributes of the button in varible, then start modifying the attribute at run time.
    Thanks
    Sathish

  • How to Make An Invisible Purchase Visible?

    I just purchased an album from the iTune store that is invisible in my iTunes Music Library, even though it can be located (and played) with Finder in my Music folder as well as in the Purchased tab of iTunes.  The album is visible in the Music sections of all my IOS devises (iPhone, Apple TYV, etc.).  How can I get it to show in my iTunes Music Library?

    I did, as well as the names of individual songs on it all to no avail.
    However,I did find a fix: 
         I closed iTunes. 
         i then went over to one of the songs in Finder, and double clicked it.  iTunes opened, but nothing else happened. 
         I repeated both of the above steps, and ths time iTunes started playing the song; and while it played the album and all the songs appeared in my iTunes Music library. 
    I closed iTunes, and reopened it again (without Finder).  And, the invisible album was still visible.

  • Bug? calling javascript click() on a hidden button causes js error on page

    I call the .click() method on a hidden button to cause the page to refresh. This works OK, but when the page comes back up, it has a javascript error on it. It turns out the error is from some javascript that is trying to set the focus on the hidden button that was clicked, which causes an error in IE (This doesn't seem to bother Firefox) .
    While I imagine that there are workarounds, why should the underlying faces architecture be setting the focus to a hidden button?
    It's easy to duplicate:
    Create new page. Add two buttons. For the first, make it invisible (uncheck visible in properties), then cause it to submit a virtual form.
    For the second, add this to the onclick:
    document.getElementById("form1:button1").click();return false;
    Bring up the page, click on the visible button. The page will refresh, and you'll have a nice js error.
    BTW: Obviously, I don't want to click one button from another. What I want is a way to cause an action to happen from javascript. I can't imagine it would work to simply submit a form from javascript, so I use this method. It works fine except for the error. Is there a better way to do this?

    which causes an error in IE (This doesn't seem to bother Firefox) .Vaious browsers behave differently at times when executing javascript code. Many instances of this can be found on the net. This is a browser specific problem.So it's ok to set the focus to a hidden button because firefox is more relaxed about this obvious error than explorer is? When would anyone really want a hidden button to gain focus? What do I tell my users--don't use explorer, because it doesn't like it when faces sets the focus to a hidden button? Ignore the error message you get? What?
    BTW: Obviously, I don't want to click one button from another. >>What I want is a way to cause an action to happen from javascript.Please describe in detail what action you would like to perform from javascript. It is not clear as to what the use case is.
    I don't really see how the use case matters. I gave a very easy example how to duplicate this problem. The reason that I want to do this is that there are many places to enter javascript code that don't allow for an action to be triggered. I have many instances of this. For example, I'd like a mouseover on an edit field to cause an action. I can capture this in javascript, but I can't cause any server side processing. To get around this limitation, I call the hidden button's .click method, which does cause a server side event.
    Here's a simpler, more direct incarnation of this error that doesn't involve javascript.
    Create a new page. Put an element on it, like an edit box. Put a button on the page. For its action, put:
    public String button1_action() {
    getButton1().setVisible(false);
    return null;
    Pressing this button will cause a page refresh, and then a javascript error.
    Use Case: After the user presses the button, they shouldn't be allowed to press or see it again.

  • How to Make the Default Button Marker Not Show Upon Launching...

    I am trying to only have the markers show up on the menu item when you roll over it.  However, when the menu is first launched, the marker is automatically showing up on the first button.
    I have selected "None" as the default menu button in the menu config.  I am also using Photoshop to make the menu and creating the (+) buttons there.
    Any help would be greatly appreciated.
    Thanks.
    Dave

    Create an invisible button (turn off the visibility of all layers) and
    set it to use Highlight Group 2 (edit the Menu Color Set).  Set the
    opacity of all the highlight states to 0%.  Make the invisible button
    the default button.
    -Jeff

  • Make button invisible when flv starts again

    Hi,
    Please, can some one help me and tell me how to have a button
    instance become invisible when the play button from the skin.swf
    file is clicked? There may be another way to acomplish what I am
    trying to do.
    I have a Flash 8 file with a FLVPlayback component pointing
    to a FLV file. I am using an external skin for the controls. When
    the video is finished I have it displaying a button, but if the
    person wants to start the video again the button needs to become
    invisible again. I am assuming I need to create an actionscript
    that says if the video is playing (at all ) the button is
    invisible. But how?.. is the big question for me.
    Any help would be great.
    Thanks
    thepopguy

    This is possible. You need actionscript to check the status
    of the video, if it is playing then the button goes invisible. This
    is called an event listener. You need to give the component an
    instance name - like vid. Then use this code on the frame:
    //listen for movie to play
    var vidList:Object = new Object();
    vidList.playing = function(){
    button1._visible = false;
    //any other actions go here
    vid.addEventListener ("playing",vidList);
    stop;
    //listen for movie to stop
    var vidList2:Object = new Object();
    vidList2.stopped = function(){
    button1._visible = true;
    //any other actions go here
    vid.addEventListener ("stopped",vidList2);
    stop;
    ============
    This code will actually listen for the movie to play, and
    then it will make the button invisible. It also listens for the
    movie to stop, and it make it visible again.
    Sample:
    http://www.johnkalnin.com/flashhelp/Vid-isPlaying-inv.html
    Flash 8 source:
    http://www.johnkalnin.com/flashhelp/Vid-isPlaying-inv.fla

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • Is there a way to create a button to make an entire page visible or hidden in an Acrobat XI form?

    Is there a way to create a button to make an entire page visible or hidden in an Acrobat XI form?

    Note that Reader (11 or otherwise) cannot show/hide pages that are templates. Reader 11 can spawn new pages from templates and delete any spawned pages, however. It also supports spawning a template by overlaying it on an existing page.
    The UI in Acrobat 11 for making a page a template and setting its visibility is found under: Tools > Document Processing > Page Templates
    Here are some links to the JavaScript documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1216.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.2.html
    Note that some of this information is outdated with respect to Reader 11.

  • How do you make a custom button that is Invisible When not selected

    Im just recently switching over to using a mac for authoring. I really like all the features in DVD Studio more than what i was using on a PC for the past 6 years. Which was ulead DVD Workshop 2.
    The only problem im having (For Now) is that i cant make my custom buttons invisible. I made this little black shape thing in photoshop and i want to use it in DVDSP for selecting different tracks.
    I thought all i had to do was just save the black shape with a transparent background in photoshop as a .psd and import it. But that didnt work.
    When i change episodes it just stays black the whole time. I want something that will be invisible when it is not selected.
    please help
    I can send someone my little shape if they can make it a usable button that i can make invisible in dvdsp. I really need to see the layers done with a shape as a button to see how they were able to make it invisible.
    i tried a few tutorials but instead of being invisible all i got was a shape that was stuck white the whole time. this is even when i put the opacity to 0 on normal.
    I want to make this into a button
    http://img694.imageshack.us/i/custonbutton.png/

    Ok, what you want to do is also in the same tutorial. See the section on "Advanced Highlights" (again, avoid the sections on layered menus), You can create an overlay that does have two colors. The bad news is that there will be absolutely no anti-aliasing at all. This means your graphic will be extremely pixelated. This is just the way the DVD specs are set up, so there is no way around it.
    Given that I would highly recommend redesigning your overlay. Take a look at variety of DVDs from Hollywood. See what they are doing in their menus. You can do anything they are doing, but you will notice that the overlay is very simple because of the limited anti-aliasing of DVDs. In all the years that I've been watching DVDs I've only see one DVD use two colors in the overlay, and that was the Jim Carey "The Grinch who Stole Christmas."

  • How to make a button invisible?

    I'm sure this is something easy that I'm missing, but I can't figure it out.  How do I make a button invisible?  I need it to be invisible through frame 43 of my movie.  I have tried changing the alpha to 0, but it's not letting me change that, except in the edit button mode which changes it for the entire duration and not just through frame 43.

    It can vary slightly depending on which version of actionscript your file is using, but just turn the visible property off and on.  For AS3....
    btnName.visible = false;
    btnName.visible = true;

  • To make a push button invisible when a Radio button is selected.

    Hi,
         There are 5 radio buttons in a group. Out of those when st and 3rd are selected a push button should be made visible else invisible.
        The problem is that when the transaction is executed by default the first radio button will be selected but the push button wont be visible.But if i re-select the 1st radio button then the push button will be visible.
        So is there any way to make the push button visible when the transaction is executed(ie bcoz the 1st radio button is by default selected) or neither of the radio buttons should be selected by default.
    Thanks in advance.

    Hi Sridhar,
    For example say your PF sataus name is 'STATUS-100'  which contains the push button and function code for the button in 'PUSH', then in your part of code use the following syntax,
    Here 'rb_select' is your radio button.
    IF rb_select EQ 'X'.
        SET PF-STATUS 'STATUS-100' EXCLUDING 'PUSH'.
    ENDIF
    I hope this will help you.
    Regards,
    Manoj Kumar P
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM

  • Ctrl + secondary mouse button (Trying to make a button invisible)

    Hi Portal Experts,
    I am trying to make a button invisible basically personalization of Iview we are in SAP Portal version 6,40. I have kept mouse on the button and action was Ctrl + right click of mouse and i am not getting the properties screen rather a general windows options(Second screen shot). It would great if i can get suggestions to get the properties screen.
    Thanks in Advance..!!
    Regards
    Venkat

    Hi Venkat,
    Can you check the value of property "AllowUserPersonalization" in Visual administration Services → Configuration Adapter → webdynpro → sap.com → tc~wd~dispwda - propertysheet
    Also what is the exact version of this portal?
    Mahesh
    Message was edited by: Mahesh Krishnapillai

  • Can't make buttons invisible

    I am trying to use buttons to show word definitions on mouse rollover.  The definition is in the tooltip and is used as the label.  The definition shows, but I can't make the button invisible.  It shows as a solid block with the label.  I've changed the Appearance to no line and no fill, but nothing changes.

    Acrobat X Pro.  Could it be that I have to produce the document for distribution before they disappear?
    I've inserted a graphic with all the settings I have used, but it may not be readable.  I've picked Hidden and no line or background, but it still shows ups.
    Thanks for your help.

  • How to make buttons invisible on the layout(se51)

    hello All,
                                 i have a dialog screen i need to make few button invisible when i calll the next screen but the next screen is the same screen , according to my logic only needed buttons should be seen and rest should be unvisible. please help me fast ..
                           have a nice time there bye

    Ritesh,
    Go through the code .Here instead of input fields you add the modi id for BUTTONS.give same MODIF ID name to required enable fields and not required fileds are another group name.
    PARAMETERS: p_pcfile LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'
                MODIF ID ccc,
                p_pctype LIKE rlgrap-filetype OBLIGATORY DEFAULT 'ASC'
                MODIF ID ccc,
                p_unix   LIKE rlgrap-filename OBLIGATORY DEFAULT '.\'
                MODIF ID ccc.
    PARAMETERS: p_dir LIKE rlgrap-filename OBLIGATORY DEFAULT '.'
                MODIF ID ddd,
                p_fp  LIKE rlgrap-filename
                MODIF ID ddd.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN OUTPUT.
      IF p_up = 'X' .
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 1.  "Enable
              screen-invisible = 0. "Disable
              MODIFY SCREEN.
            WHEN 'DDD'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
      IF p_list = 'X'.
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'CCC'.
              screen-input = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            WHEN 'DDD'.
              screen-input = 1.
              screen-invisible = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    Pls. reward if useful

  • How can I use an image as a button and make it invisible unless selected?

    Hello,
    I have been trying to use this button I created in Photoshop in Encore but I cannot get it to work the way it should.  First I import the image and drag it onto my menu.  Then I select "Object" then "Covert to button".  That creates a button but I want it to be invisible unless I select it.  Creating a button this way only overlays colors on top of the image when selected vs not selected.
    What I need is to have the image been a subpicture highlight.  I tried to use Photoshop to create a layer under my buttons and use the image there, typing (=2) as the layer name.  I think this is supposed to show the button in its selected state?
    But that doesn't work.  The image is invisible when I open the menu in Encore, not matter what I select for button highlights.
    Could you please explain how to create an invisible button but use an image as its selected state and possibly another for its activated state?
    Thanks.

    Have you tried using the selections in the Encore menu viewer that show you selected and activated states?

Maybe you are looking for