Question how to display the layer on a document level automatically-javascrip at the level of the document?

I have a form in which the user selects immediately their favorite in a drop-down list called color FavColor they have the choice between three colors: blue, yellow or green.  Based on the user's selection, custom layers (BlueLayer or YellowLayer or GreenLayer) are immediately displayed with additional specific questions for the user.  Right now I have the Javascript below in the area of validation of the box FavColor.  It works very well.  My problem occurs after the user saves the document and try to reopen it to print it.  The data is all there, but the relevant layer does not appear automatically (I have to re-enter their FavColor so he can run the script again).  Can someone help me find a solution for this? Is it possible to run a script when a document is opened to determine which layer should show?  Or do I have to create the user save the file differently so that the entry is "committed" to the document?  I'm still pretty new to javascript and programming these formulas so thank you in advance for your help!

var layers = this.getOCGs (0);

for (var i in layers) {}

If (layers [i] .name is "BlueLayer")

.State layers [i] = (event.value == "Blue");

ElseIf (layers [i] .name == "YellowLayer")

.State layers [i] = (event.value == "Yellow");

ElseIf (layers [i] .name == "GreenLayer")

.State layers [i] = (event.value == "Green");

}

I answered this question under your original thread...

Tags: Acrobat

Similar Questions

  • Newbie question: how to display the logo of the company for all applications

    Hi all:

    I am new to APEX and in the thorough step 'Application two days Express Developer's Guide.

    I have Oracle XE with APEX 3.1.2 installed.

    I have a file called test.gif stored on my C:\logo\test.gif logo

    The question is what is the step to display this logo on all pages for each application (I could build applications in the same workspace, and I like the same logo to all pages for each display application).

    I have extensive air manual and this forum and cannot always understand.

    Here is what I tried:

    -Click on an app that I created in Application Builder
    -Click on "shared components".
    -Files-click == > Images and upload my C:\logo directory test.gif
    -Return to page 'Components of the part' == > Logo and select / access to the following values:
    > logo type: image
    > logo: /i/test.gif
    > logo attribute: width = "100" height = "20" alt = "Company Logo".

    Save the changes. When I run my application, the company logo displayed as 'x' icon.

    A I missed something?


    Thank you!

    Kevin

    Kevin,

    You wanted a step by step so that is.

    You must first download your logo to your workspace file. Then you can assign it as a logo, so this step appears on all pages.

    Before you start, I suggest that ensure you that your graphic file name does not include the spaces inside. Replace spaces by dashes, underscore or squish traits it.

    1. application Builder-> shared-> files components-> Images.

    2. click on the create button.

    3. application for leave "No Application associated with" value, provide the specification of file, then click on the download button. When it's done, copy the name of the file (for example MyFile.gif).

    4. go into the Application Builder-> shared-> Application-> definition components

    5 scroll down the page to the section Logo and set the Type of Logo Image.

    6 Logo, enter ' #WORKSPACE_IMAGES # ' follow-up of your files.

    for example #WORKSPACE_IMAGES #MyFile.gif

    7. Optionally, you can set the attributes of the Logo, for example, by specifying the height and width to display your image.

    8. click on apply changes.

    9. run app.

    If you have the right to file specification, you should see your logo in the upper left corner. If you want elsewhere, you have to change the page template, which is way beyond the scope of this forum and the tutorial. :-)

    Good luck

    Stew

    p.s. If it works for you, please give points for correct answer at the top of this topic.

  • Question: How to display the rating for the SURVEY

    Hello

    I use Lightroom for years. I like to use the mode of INQUIRY.  But today, I couldn't see the stars rating under each photo in the mode of inquiry; I don't see the status of the indicator.  Now, it's probably something I did, like hit a shortcut or something... but for the life of me, I can't understand how to bring this Visual information.  After searching online + fiddling around with the settings, I finally thought I'd come here and ask if anyone knows...

    Thank you!

    PS. Lightroom 4.3RC (why 4.3 RC, because I am one of these with a super slow Lightroom plagged in develop mode, especially with my D800 files!) I'm crossing my fingers with each update RC software is faster... )

    Look closely

  • How to display the list of temporary and free sites that we use?

    Adobe Web Host - Free Sites.

    How to display the list of temporary and free sites that we use?

    When you're connected creative cloud, we used to be able to view the temporary and lots of 5 free sites that we use hoe.

    Could not find a list on my creative cloud account or when the link to 'Manage' in the Muse.

    No mention of the free sites in the FAQ. Is there a change in policy? Are always included in the subscription of the free sites?

    - Adobe Muse help | Adobe Muse / Common Questions .

    When I publish in Adobe Muse CC, must I pay for hosting with Adobe?

    Adobe Muse CC allows you to publish your Web site temporary on the platform Adobe of accommodation free of charge for a trial period of 30 days. This gives you the ability to send a direct URL to your client for review. All sites with Adobe trial mode will include the field "businesscatalyst.com" in it. If you decide to take the live site by paying for monthly hosting, you can transfer your domain name and delete the subdomain businesscatalyst.com. Or you can export the HTML and host the final site with a host of your choice.

    //

    Yes, don't know why they took out of the cloud interface.

    But if you go to http://www.businesscatalyst.com/partnerportal and you connect with your ID cloud you will have access to all your cloud sites and many other features.

  • How to display the parameter string registered by DBMS_XMLINDEX?

    This is probably a stupid question, but I can't seem to find any function to display the setting of a parameter string that was recorded by DBMX_XMLINDEX. REGISTERPARAMETER.

    For example,.

    If I have:
    BEGIN
    DBMX_XMLINDEX.REGISTERPARAMETER('indexParam', 'xxxxxxxx');
    END;
    /
    How to display the value of 'indexParam' after creation?
    SQL> set long 1000
    SQL>
    SQL> select paramstr
      2  from xdb.xdb$xidx_param_t
      3  where param_name = 'MYINDEXPARAM'
      4  ;
    
    PARAMSTR
    --------------------------------------------------------------------------------
    PATH TABLE po_ptab
        PATH ID INDEX po_pidx
        ORDER KEY INDEX po_oidx
        VALUE INDEX po_vidx
        PATHS(NAMESPACE MAPPING(xmlns:p="http://www.example.com/IPO"))
        GROUP MASTERGROUP XMLTABLE PO_TAB
        ('/p:PurchaseOrder'
            COLUMNS
               REFERENCE VARCHAR2(30) PATH 'p:Reference',
               REQUESTOR VARCHAR2(30) PATH 'p:Requestor' )
        GROUP ITEMGROUP XMLTABLE ITEMGROUP_TAB
        ('/p:PurchaseOrder/p:LineItems/p:LineItem'
            COLUMNS
               LINENUMBER NUMBER(38) PATH '@p:ItemNumber',
               QUANTITY NUMBER(38) PATH '@p:Quantity',
               DESCRIPTION VARCHAR2(256) PATH 'p:Description')
     
    

    After you add it to an index, you can also view the content in USER_XML_INDEXES. PARAMETERS (XML format).

  • How to display the width of the page or the big screen in firefox 11 automatically?

    How to display the width of the page or the big screen in firefox 11 automatically? I know how to Ctrl +, ctrl - and ctrl 0, but is there a way to define 11 firefox to automatically set the page viewing by default "page width" or full screen (F11 not)?
    Help, please. Thank you.

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to display the drop-down list box in MS excel by using labview report generation toolkit? pleasepost code block diagram?

    How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...

    Like this. (edition, use the reference forms instead of the reference to the worksheet)

    Ben64

  • How to display the list of components in ultiboard 10?

    The DRC report the errors where the components that are no longer in the design have been removed. How to display the list component and then remove them from the netlist to stop this?

    Ultiboard reported missing errors of component (part 'X' is not about design) because the part is always referenced by a net. To fix this, you must remove the part of the net. Following the steps below to remove the part form the net.

    1 tools > Netlist Editor

    2. for each network that the part has been connected to, select the Net (upper-left).

    3. Select the tab of pine trees, select the part and it is the PIN in the dialog box, then click on remove

    The problem is when the part is removed, I see no easy way to determine the threads you need to remove the part of. I entered this as a feature request to make this easier, but as a workaround, you can put part and say Ultiboard what the missing part, then search the net names on the pins and remove the part of these pins

    1 place a piece with a lot of pine trees (for example the part that was removed, or for example through Hole technology > Connectors > SIL & headers > HEADER2X9). When you place the part, make sure that the RefDes matches the RefDes of the part which has been removed.

    2. once the room is placed, you should see rats nest lines that connect the part to the nets.

    3 Zoom on the pins. You should now see the net name on each of the axes. For each of the pins connected, remove it from the net as described above.

    4. remove the part that you placed.

  • How to display the name of my refnum on the front?

    I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.

    How to display the name of the file (including the path) on the front panel once the user has entered it?

    Michael

    Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.

  • How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you

    How to display the wireless in my xp on lenovo 3000n200 please show me shortened steps you

    Hello

    1. do you have problems connecting to the wireless network?
    2. don't you make changes to your computer, after which the issue started?
    3. where exactly you want to display the wireless network?

    If you have problems to connect to the network, I would recommend that you reinstall the wireless network cards.

    Follow the steps in this article.

    http://support.Microsoft.com/kb/283658

  • How to display the lsit of play while visualizations are playing

    How to display the playlist while visualizations are playing

    What version of WMP are you using?

    You can usually right click the button reading at the top and select view the list pane.

  • How to display the date on the taskbar (toolbar)

    Please tell me how to display the date at the bottom of the screen.  Currently, everything is displayed is the time.

    Hello

    You said in addition to the clock so I initially think not that you need it however, others said it would be a good idea to show this method of date display. Also if you move the taskbar vertically the date is also displayed.

    Always see the day, date and time in the taskbar
    http://freewindowsvistatutorials.com/meetWindowsVista/taskbarAndSystemTray/showDayDateAndTimeInTheClock.php

    You can lift the taskbar is higher - make a right click on it - uncheck box lock the taskbar then take the upper part of it and lift it higher and the date will be under the clock.

    --------------------------------------------------------------------

    I found a utility that does on one level of the bar tasks if it does not have to be raised-
    T - clock - free - 3 references to it:

    Windows7 like clock on the system in Vista & XP tray
    http://www.tothepc.com/archives/Windows7-like-clock-on-system-tray-in-Vista-XP/

    TClock: See the Date Look like Windows 7 & time in the system tray in Windows XP and Vista
    http://www.askvg.com/tclock-show-Windows-7-look-like-date-time-in-system-tray-in-Windows-XP-and-Vista/

    T - Clock of the Stoic Joker
    http://www.greggdeselms.com/tclock.html

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to display the .dcm file

    How to display the .dcm file

    Hello

    This should help you.

    http://www.FileInfo.com/extension/DCM

    See you soon.

  • How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    How to display the language bar and bring back the language switch to the taskbar?

    Hello

    According to the description, I understand that you do not want to display the language bar.

    I would like to know some information.

    1. You hide the language bar, or missing?

    I suggest you try the steps mentioned below and check.

    1. Go to the control panel.

    2. Click on clock, language and region.

    3. Region and language.

    4. Keyboard and language tab.

    5. Change keyboards button.

    6. Language bar tab.

    Then simply change the parameters of language bar hidden in the "embedded in the taskbar" and check.

    Here, you can also check the option in the check box for display icons of language in addition to the taskbar bar.

     

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • How to display the speaker icon in the taskbar in windows 7?

    How to display the "speaker" of the taskbar icon in windows 7?

    Thank you

    concerning

    Jamal

    Hi Jamal

    1. right click on the taskbar, and then select Properties.

    In the Notification area section, click the Customize button.

    2. in the Configuration window, find the Volume icon.

    The Drop Down Menu to select the icon lounge and Notifications.

    3. If you don't see the Volume icon, click system icons activate or deactivate the link at the bottom of the window.

    Find the Volume icon and select enabled in the menu dropdown.

    Repeat step 2.

    Let us know the results.

    Concerning

Maybe you are looking for

  • A satellite - Frozen cursor after installing a game

    A game that I installed has damaged the ability of my internal mouse cursor to move around the screen. It froze just in the middle of the screen, and even if I used the system restore, it has still not fixed the problem. I even uninstalled the game,

  • NB100 - new user. Unable to connect to the internet via a wireless connection

    * What can someone help please.* I bought a NB100 (Ubuntu) yesterday.He walks and he finds our Wi - Fi connection and got to the web. Large. I then ran "Update Manager" and since then I can not get internet connection.In 'Network settings' it shows o

  • Looking for a compatible with an AirCard 810 card router

    The only solution viable available to my boss at home internet connection is wireless and there an AirCard 810 card. It has a printer top of range which includes the direct scan to e-mail from the printer, just like here at work, which has only an et

  • Version of App problem, help.

    I developed an application with basic reading and writing (access SQLData) data. on Debug or Run it works perfectly, but when I'm creating a release and run the bed application only from the database.

  • BlackBerry Smartphones Key lock

    I just upgraded my Storm to v.4.7.0.141 software and have noticed a really annoying problem with the locking function. Where previously, by pressing the lock at the top button to left of the phone would lock both the screen and four buttons and the b