How can I make an invisible button that toggles an icon when you click it?

I am extremely new to Acrobat and Javascript overall, so I'm a little lost. I work with a form that requires that I do several buttons from rocking of the images/formatting in an existing pdf. What javascript would be appropriate for an 'invisible' borderless button or no fill color, in order to define an icon in there when you click on it and remove this icon when you click it again, with the ability to switch back constantly? Thank you very much!

Mark III

There are a number of ways to do this. If you want everything to be autonomous within a single button, you can configure the behavior of 'Push' button and set the icon the mouse down on the non-empty icon and flipping to the icon of the Virgin. You can then place the following code in the mouse event to the top of the button:

Script mouse upward to a button

(function () {}

Get a reference to this button

var f = event.target;

Get the current property of the submitName

var NS = f.submitName;

Toggle submitName property

f.submitName = sn = "" | SN = 'false '? "true": "false";

Set the icon on the Down or reversal icon (empty) defined for this button

var oIcon = f.submitName = "true"? f.buttonGetIcon (1): f.buttonGetIcon (2);

f.buttonSetIcon (oIcon);

})();

This code co-opt little used field submitName property to track the State of the button. (It won't be a problem for the buttons, even if the form is put in place to present it as 'HTML', which is the only time where this property is used.) It extracted the icon below or on the icon to use for the icon overview.

If you don't like that behavior, you can use a button hidden and implemented in the same way, companion setting icon upwards on the non-empty icon and the icon down empty. The key code can then be something like:

(function () {}

var f = event.target;

var F2 = getField ("b2a");  Get a reference to the other button

var NS = f.submitName;

f.submitName = sn = "" | SN = 'false '? "true": "false";

var oIcon = f.submitName = "true"? F2.buttonGetIcon (0): f2.buttonGetIcon (1);

f.buttonSetIcon (oIcon);

})();

In this way, that you don't have to limit a parameter of behavior of Push button.

Tags: Acrobat

Similar Questions

  • How can I fix: Burkina Faso / approval of the separate tabs when you click on links?

    When I click on the link in the email took me to the new tab, he wants me to click the "approve" button to open the link

    You can attach a screenshot?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • Make sure you do not exceed the maximum size of 1 MB
  • How can I make the submit button that is activated after the user enters a digital signature?

    I have a form that contains a digital signature field. Once the user enters their digital signature, my "submit" button is disabled. I wanted that this remains activated for the user can submit the form with their digital signature and the form (in PDF format) as an attachment.

    I'd appreciate any help.

    Kind regards

    Fanny

    You can configure the fields of lock after the signing of the digital signature. In Livecycle Designer across this field properties: object-> TAB Signature properties. Here can exclude the button submit or any other field, if necessary, do not lock after signing.

    -Rambeau.

  • How can I make YouTube playback buttons and other plug-ins more great because they are so tiny?

    How can I make YouTube playback buttons and other plug-ins more great because they are so tiny in Firefox? I tried some suggestions dealing with entering "subject: config ' in a fresh browser, but does not. I also downloaded the add-on called "Theme font & size changer", but that no longer works. So I'm reaching here that it was a suggestion that offered another user here.

    Ah, Yes, that's - a ultra high resolution (dots per inch) display. It is a known problem in Flash Player, which Adobe is working on fixing.

    In the meantime, you can get some videos to have normal size controls from the Youtube HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click on the button "request the HTML5 player.

  • How can I make the menu title of a different color when it is horizontal Spry menu menu?

    How can I make the menu title of a different color when it is horizontal Spry menu menu?

    Dreamweaver CS5.5

    Apple OS X.6.8

    Display of the site to: http://Dorsay-Easton-Indian-law.com/staging/index.html

    Steps to follow:

    1. click on the link to land on the home page

    2 link see Home in the Spry horizontal navigation menu

    Real:

    Title of the home menu is the same color as all the others.

    Expected:

    The title of the active menu is color: #FFC.

    I was hoping that a: active would give me this feature, but it's not how it is described. All suggestions are welcome!

    The tag BODY nothing that I tried in the editable model. This is why I wonder how to disconnect the model individual pages. Adding an ID to each body tag is a condition sine qua non of the how-to page that you provided.

    You are not theeditable in a template tag.

    You are the attributes of theeditable tag.

    Do not unplug the model child pages.

    Specify editable tag attributes in a template

    http://help.Adobe.com/en_US/Dreamweaver/CS/using/WScbb6b82af5544594822510a94ae8d65-7aa3a.h tml

    In the model:

    1. Select ittag (in the tag selector, or click inside the)tag in Code view)
    2. Modify > templates > make attribute editable
    3. Select the code in the drop down attribute
    4. If there is no ID attribute then click Add and type the ID in the next dialog box
    5. Attribute: ID
      Check the box 'Make attribute editable '.
      Enter anything in the field of the default label for example foo
      Ok
    6. Dreamweaver will change thetag to read
    7. The ID is now editable
    8. Save the model and update the child page

    In each page of the child:

    1. Edit > properties of the model
    2. Select the id attribute in the list (it's probably the only one listed)
    3. Change its name in the box to any name matches your CSS rule for the active state of the page
    4. Ok
    5. Save
    6. Download
  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • Outlook Express - How can I keep email to open in the display pane when I click on it in the Inbox?

    How can I keep email to open in the display pane when I click on it in the Inbox?

    Turn off the preview pane. (View |) Page layout).

  • can I delete login page so that windows starts automatically when you first start?

    can I delete login page so that windows starts automatically when you first start?

    Yes, you can.

    See http://windowsxp.mvps.org/Autologon.htm

  • How can I change from mm to inches in Page layout when you customize?

    How can I change from mm to inches in Page layout when you customize?

    This forum is for developers who use the LR SDK.  Your post in the main forum of LR will be enough: need to change the dimensions of mm to inches of layout using custom calibration.

  • We have virtual machines on one of our groups that show alarms, but when you click on the tabs, alarms, or tasks and events there is no corresponding alert.

    We have virtual machines on one of our groups that show alarms, but when you click on the tabs, alarms, or tasks and events there is no corresponding alert.

    Can you try to make a vmotion host and see if it gets resolved? If not, can you close the virtual machine and start again? I have seen this problem before and a stop and start resolved.

  • What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images?

    What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images? Missing images are not on my computer, but when the document opens the images are there. I can copy and paste the INDD images in Illustrator. Y files/images/I am able to copy and paste the images that have been incorporated into the INDD file in AI of the INDD file? If this is not what type of image am I copy and paste? Can I take the images that I stuck in there and place them in a new INDD document and have the images to reproduce without problems?

    The images could be anything - check the links Panel.

    What you see (and copy) is just the screen preview, not the actual image data.

  • How can I close only 1 session, without closing all sessions, when you run several at the same time?

    I run normally 2 sessions of Firefox. Currently I have 3 sessions running. How can I close only 1 session without closing all? When I choose "File" and then "Exit", all sessions nearby.

    Firefox does not work more 'sessions', you see several windows running in the same process. IE runs each window in its ' own process and Chrome runs each tab in its' own process, but Firefox running in a single process.

    Do not use file > outputis to completely close Firefox, do not close the window you are looking at when you use this command. There was formerly a command to close this window on the file menu, but who took a few versions ago. You will need to use the X in the upper right of the window to close this window and leave the other open windows. Or you can use {Ctrl + Maj + W} close the window that is to the point (where you look).

  • How to do an audit in the order page IN. When you click on the button "submit"

    I want to do an audit in order IN. When you click on the "submit" button, it will be checked whether the OP is reserved and will display the message if not.

    I have a CO span from the original, I can know where should I put the logic inside the processFormRequest? and how to write code to control them thanks.

    public void processFormRequest (pageContext, OAPageContext,

    OAWebBean oAWebBean)

    {

    super.processFormRequest (pageContext, oAWebBean);

    }

    OK here is the code below,

    String sql = "START: 1: = XXPO_CHECK_RESERVED_PKG." XXPO_CHECK_RESERVATION(:2); END; « ;

    CallableStatement cs = txn.createCallableStatement (sql, 1);

    String outputval = null;

    try {}

    cs.setString (2, Segment1);

    cs.registerOutParameter (1, OracleTypes.VARCHAR);

    CS. Execute();

    outputval = cs.getString (1);

    TXN.Commit ();

    } catch (Exception sqle) {throw new OAException ("Error in the application of staffing", OAException.ERROR) ;}}

    -Beginning of the code by Hemant

    If ("N".equals (outputval) &! ") ». Equals (outputval))

    {

    throw new OAException ("The PO isn't in reserved State");

    }

  • How can I make Firefox the aspect that he used?

    I just bought a new computer laptop with a resolution of 1920 x 1080 and installed Firefox 21. Everything has been compressed to a small part of my screen and change the font size has not helped, nor have layout.css.devPixelsPerPx evolution. I tried updating to Firefox 22 and now, the toolbars are extremely fuzzy, not to mention that everything is always compressed. How can I get this Firefox looks like the way it's supposed to; Crisp, clear and use of my screen?

    Wow, everyone is complaining that their display is huge in Firefox 22.

    Your PPP of Windows setting is set to '100% size text' or 96 DPI? You can check the setting using the control panel display.

    When optimize you for Firefox, does not fully optimize? Apparently there were changes in Firefox 22 associated with window resizing (mentioned in another thread), but I'm not sure what it was.

    Moreover, for your screenshot, maybe you can fill half of the screen with Firefox and the half of the screen with IE, both on the same page for comparison.

    In case you mean that your windows everything changes to more than one low resolution screen stretched when you launch Firefox, on the compatibility of the shortcut tab program and make sure that none of the check boxes is selected it.

  • How can I make the "abort" button show? (I can not click on 'stop' in the menu drop-down operations).

    I modified a model; It took me a while loop inside another while loop, which causes the "stop" button to the don't end not the functioning of the VI. I hooked the "stop" button at the same time of the icons stop loops while, but is not complete the VI, so I need to use the button 'give up', but it isn't here. How can I bring / what it does appear?

    Move the button "stop" inside the inner while loop.

    And just for the appropriate encoding methods, do not hide behind a loop code

    It makes debugging difficult.

    You must also move the button 'save' inside of the inside while loop as well.

Maybe you are looking for