LiveCycle Form - Need Checkbox to show/hide image

My checkbox is named Ucheck.  The image is named UStamp.  I need the checkbox to turn the image visible.
I've read the other forum answers and have found this example:
var showHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("Text036").display = showHide;
However, when I the above script in to my form (changinging the (getField to "Ustamp") on LiveCycle, it gives me this answer
Script failed(language is formcalc;context is
xfa[0].form[0].U-check[0].#subform[0].Ucheck[0]
script=var showHide=
event.target.isBoxChecked[0]?display.visible:display.hidden;
this.getField("Ustamp").display=showHide
Error: syntax error near token "?" on line 1, column 44.
When I take the "?" out, it says it doesn't like something else about the script.
I know NOTHING about Javascript, so haven't a clue how to debug this.  I do program in Access, but am not real familar with VB either.
Thank you for helping this know-nothing....

That code is intended to be used with a form that was created with Acrobat, not LiveCycle Designer. You should go to the Designer forum here and pose the question.

Similar Messages

  • Need help with show/hide and layers moving

    I'm more of a designer, so I don't know code or CSS well at
    all. I'm doing an online portfolio for a class and need help with
    layers not staying in place in different browsers. The portfolio is
    created with a table, but I wanted to use the show/hide function
    for thumbnails of work. Are layers the only way you can use this
    function? I read layers don't work well with tables, so how else
    can I make it so when you mouse over a thumbnail, the larger image
    appears in another cell?

    > I don't know code or CSS well at all.
    That's unfortunate.
    > layers not staying in place in different browsers.
    Layers don't move. But the rest of your page does.
    Before you get too wrapped up in layers, though, please read
    this -
    http://www.great-web-sights.com/g_layerlaws.asp
    They are not good when be used as a primary layout method.
    > I read layers don't work well with tables
    They work fine with tables - but you have to understand both
    tables and
    layers to use them.
    Why not show us your page, so we can see what you are
    struggling with?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Bobbi67" <[email protected]> wrote in
    message
    news:ertd9h$h3m$[email protected]..
    > I'm more of a designer, so I don't know code or CSS well
    at all. I'm doing
    > an
    > online portfolio for a class and need help with layers
    not staying in
    > place in
    > different browsers. The portfolio is created with a
    table, but I wanted to
    > use
    > the show/hide function for thumbnails of work. Are
    layers the only way you
    > can
    > use this function? I read layers don't work well with
    tables, so how else
    > can I
    > make it so when you mouse over a thumbnail, the larger
    image appears in
    > another
    > cell?
    >

  • Home Page loads slowly because of too many show/hide images.

    I was asked to create a home page that displayed the correct product image in the background as you mouse over the menu item in the product portfolio navigation.  I built the page using quite a few show/hide behaviors displaying the correct image.  Now I have a HUGE home page that loads very slowly. Is there a better way to accomplish the same affect or do I need to scrap this idea and keep the images on the individual pages?
    You can see this page here:  http://www.keystonewalls.com
    (mouseover the PRODUCT PORTFOLIO button and scroll down the menu to see the affect)
    The client loves the fact that you don't have to leave the home page to get a good idea of what each product looks like but they aren't happy with how long it takes to load.
    Help!

    Yup.  You've got some trimming to do. 
    http://www.websiteoptimization.com/services/analyze/
    On a T1 connection (1.41 MB/sec) your home page takes 18.50 seconds to load.  For dial-ups it's a very painful 395 seconds. 
    Page size:  1,943,483 bytes.   Should be closer to 200 KB.
    HTTP server requests: 41.  This should be around 10.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Show  / Hide image on button click

    I have a button that when clicked through an advanced action will show a tick graphic.
    This works fine but what I would like to happen that if the button is pressed again the tick will disappear.
    Also if the button was pressed for a third time the tick graphic would reappear, and so on.
    What is the most efficient way of doing this?
    Many thanks in advance.
    Viki

    Here we go (again). Sorry, but I have answered similar questions so many times. Here is an article that offers you several toggle button scenarios:
    Toggle Shape buttons - Captivate 6 - Captivate blog
    Steps for your use case, since you don't want to change the look of the toggle button:
    create a boolean user variable v_visib ; you can give it a default value of 0
    create a conditional advanced (or shared) action like this:
    IF v_visib is equal to 1
      Show im_x                where im_x is the image you want to show, in a shared action will be a parameter
      Toggle v_visib
    ELSE
      Hide im_x
      Toggle v_visib

  • Adobe Captivate 8 create a toggle between show/hide image

    Hello,
    Does anyone know how I can create a action with a button that toggles between shows or hides a image.
    Thanks in advanced for helping.

    BTW since you are on CP8, don't use an advanced but a shared action. The only parameter will be the image. You can then use that action over and over again, even in other projects. For another project: open the Library of this older project in the new project, drag the Shared action to the library of the new project. The variable v_visib will be automatically created, and when using that shared action, you'll just have to define the parameter (image), or you can even replace the image by another object or by a group.
    You can feel that I like shared actions, not everyone agrees with me however.

  • Show/hide image

    Hi!
    I have one JSP page with h:graphicImage. I want this image to be rendered or not rendered based on some criteria (maybe button click would render image and next click wouldn't).
    State is saved in managed bean. Say I click button so image is not currently visible on screen and go on next JSP page. On this page I click back and go back to first page and image is visible again. Altough managed bean state is different.
    How can I hide/show image based on state of managed bean before page is loaded? Probably I should work something out with listeneres but I'm not sure. Any tips or pointers are welcomed.
    Regards,
    Matjaz

    You should be able to do something like:
    <h:graphicImage rendered="#{managedBeanName.rendered}" ... />
    Have the managed bean return a boolean based on the current state of your bean. If the method returns true, the image will be rendered otherwise if false, it won't.

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • Show/hide detail row

    Carl:
    See http://htmldb.oracle.com/pls/otn/f?p=24317:6
    I modified your nifty example at http://htmldb.oracle.com/pls/otn/f?p=11933:1
    to use images instead of the show/hide detail labels.
    I had to make some minor mods to the code, but it works fine...for the most part.
    I used the option to show only 1 detail row at a time.
    If I click the show/hide images rapidly (actually I am not sure it is the rapidly part, haven't been able to reproduce it consistently), I end up with a situation where more than 1 detail row is visible at the same time.
    Can you please take a look and see if I am doing anything wrong?
    Thanks

    Mostly in IE, here is an example
    http://i3.tinypic.com/vo3bbn.jpg
    I am not sure of the exact sequence of clicks I did to land up at the screenshot, but I think rapidly clicking that show/hide image does it.
    Taking a look at the code
    function showdetail(t,i)The "t" that I am passing in to the function would be the IMG element in my case.
    I modified the Toggle function as
    function ToggleLabel(pThis)
            var l_show_img="/i/themes/theme_10/showhide_show.gif";
            var l_hide_img="/i/themes/theme_10/showhide_hidden.gif";
            var l_show_re=new RegExp(l_show_img+"$");
            pThis.src = (pThis.src.match(l_show_re)) ? l_hide_img : l_show_img;
    }where I flip the src attribute of the image.
    I am not sure what is wrong. If something were wrong, why would it work at all? Why would clicking stuff fast cause it to break?
    Thanks for any help.
    And I am not using AJAX at all, just your plain DHTML example at 11933:1
    Ah, I got it. Doing the following reproduces the bad state in both IE and FF consistently
    1. Launch the page in a new session
    2. Click the show/hide image on the first row to show the text
    3. Click it again to hide it
    4. Now click the image on the 2nd row.
    This shows the 2nd row's description...but it also shows the first rows description!
    Any idea why?
    Thanks

  • Why does the revealed image flicker when using the Show/Hide feature?

    I started using the Show/Hide Button and Forms function in InDesign CS6 and have had some peculiar things happen. I was mocking up some samples and on the swf version if you hover over the left side of the blue rectangle all is fine but if you move to the right side of the blue rectangle the image starts to flicker. When you hover over the red rectangle the pop-up image just flickers constantly. I guess there must be some issue with having the button for a revealed image under some portion of the revealed image. See: http://www.idugsf.com/_a/FI_BookSamples.html .
    The problem went away when the button and the revealed image did not overlap.
    This problem didn't occur with another file I had originally created in CS5.
    On the pdf version the buttons which are on their own layer behind the revealed image moved to the front in the pdf: http://www.idugsf.com/_a/FI_BookSamples.pdf
    [email protected]

    Remove the dimensions in the following
    <div class="tooltipContent" id="sprytooltip11">  <img src="pix/1-pp-all-490x480.jpg" width="850" height="750" /></div>
    Gramps

  • How to imbed image from XPAAJ into PDF livecycle form

    We are having a very hard time trying to add an image to a dynamic XML PDF created in livecycle Designer 8. Basically we have a letter document and we are importing data into the PDF as XML. We need to insert an image of the users signature to appear on the form. We have saved the image on a file share and I created an image field in the PDF. How do we get the image into the PDF?? The rest of the XML data is properly inserting into the PDF but the image will not. We are using the XPAAJ API. ANy help would be GREATLY appreciated. Thank you.

    I'm hoping you have figured this out by now, but in case others are having the same problem there is a section in the livecycle designer 8 regarding how to do this. You can search for "XML schema binding" and an example schema on how to include the image data in the XML you are passing to the PDF (I've been using the XPAAJ library as well) is shown.
    Essentially you just need to base64 encode the image data and include a contentType (image/jpg, image/png, etc.) and a transferEncoding (base64) attribute on the element containing the data.

  • Image map rollover show/hide layer

    My client needs a map of the US which has image maps on specific states. I need to trigger rollovers to change the state's color and view info (layer?). I'm having difficulty triggering the rollover with show/hide action on a layer, or even to change the state color, as I can't create odd shaped slices. Am I making this harder than it needs to be? Some smaller states will use offset names as triggers.

    In article <[email protected]>,
    [email protected] wrote:
    > My client needs a map of the US which has image maps on specific states. I
    > need to trigger rollovers to change the state's color and view info (layer?).
    > I'm having difficulty triggering the rollover with show/hide action on a
    > layer, or even to change the state color, as I can't create odd shaped
    > slices.
    You can do that with an image map and a whole bunch of images; no layers
    required.
    The only image that will be swapped out is a map covering the entire
    area, however you'd need to create different versions of the map, each
    with just one state hi-lighted.
    Then create image map shapes with the polygon tool approximating the
    shape of the states. Assign a Set Image URL to each polygon to swap out
    the image for the one with that particular state hi-lighted.
    A sample can be seen here:
    Cheers Martin

  • LiveCycle Form Timer Example Needed

    Does anyone have a LiveCycle form count up timer example they can share? The timer needs to have a start and stop buton and a reset/clear button.
    I have seen an example in an Acrobat form but do not know how to create one in LiveCycle.
    Thank you

    I'm not sure why that happens in the preview. Does it stop completely? I've had experience where the preview doesn't work and the stand alone app does and in most cases I'm just happy it works in the standalone and leave it at that.
    For the time format put the following code in the calculate event (or whatever event you want) of the TextField you want to see it formatted, where TextField1 is the field showing the total amount of seconds:
    var
    a = TextField1.rawValue;
    seconds = a % 60;a /= 60;
    minutes = Math.floor(a % 60);
    a /= 60;
    hours = Math.floor(a % 24);
    this.rawValue=hours+":"+(String(minutes).length==1 ? "0":"")+minutes+":"+(String(seconds).length==1 ? "0":"")+seconds;
    I'm sure there's probably a FormCalc trick or display pattern out there that mitigates the need for all that code but this works too.
    Kyle

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • Javascript Help Needed to Show/Hide Regions

    version 4.0.2.00.07
    Hello,
    I'm hoping that someone would help me with creating a Javascript function to Show/Hide regions.
    I have a Select List defined as Checkboxes that when clicked I would like to show specific regions that contain fields that are specific to that checkbox selection. There are currently four selections available. There are two selections that would show one region and the other two selections would show the other region.
    Please let me know if I need to clarify anything.
    Thanks,
    Joe

    There is an out-of-box solution that may help you - check out the "Customisation" section in the region properties.
    Otherwise, you might like to explore using a Dynamic Action to show/hide your region based on an event on your relevant checkbox.
    Either way, you should have a declarative solution when you thought you might need to hand-code some javaScript :-)
    ps - thanks for providing your Apex version.

  • This is about iPhoto:  I need to print the FULL IMAGE as shown on the screen:  the image is SQUARE (equal on four sides).  iPhoto keeps cropping it into a rectangle - THIS IS NOT ACCEPTABLE!  How do I get what I see on the screen in print form???

    I need to print the FULL image as shown on the screen - the image is SQUARE (equal on all four sides).  iPhoto keeps cropping it into a rectangle - this is not acceptable!  How do I get what I see on the screen into print form?

    Like Terence explained:
    OT

Maybe you are looking for