Skip to Content
avatar image
Former Member

Interactive script does not work in the document

I use Adobe LiveCycle Designer in SAP. On the tab Master Page placed 2 objects: Button and Image. I want to when I clicked on the Image, it became hidden. For the Button I wrote the code for Click event (language FormCalc, client):

data.#pageSet[0].Page1[0].Image1.presence = "invisible".

On the Preview PDF tab the code works (the Image disappears). But if I run my program inside SAP (Adobe Interactive Forms) the code does not work, the Image does not become invisible. Why?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 30, 2016 at 01:29 PM

    Sounds pretty like a problem which does not have the root inside the Form itself. Please share some more details about the application, how you call it and maybe you have a samplereport to share:-)

    ~Florian

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 30, 2016 at 08:39 AM

    Hi Jane,

    try to replace your invisible with hidden

    data.#pageSet[0].Page1[0].Image1.presence = "hidden".


    Also a better way to access the field is to wrap both elements with a subform.

    Additional to that try to use the messageboxes to see if your event is triggered.


    ~Florian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Florian! I changed the invisible to hidden. And wrapped objects to the one subform. There also I added one more object: textField1 for debugging purposes. In the Click event for Button, I added code for assign text to textField1 (together with the code to hide pictures). When you click Button the text displayed for TextField1 in "Preview Form" and through a program in SAP. The picture hiding only when tested in "Preview", but through the program in the SAP picture is not hiding.

      Sorry for my English.

  • avatar image
    Former Member
    Mar 30, 2016 at 10:31 PM

    Change the Click event Run At to Server from Client

    Add comment
    10|10000 characters needed characters exceeded