Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Controlling end-user menu interaction

Avatar

Level 3

Hi,

I created a form with an embedded reference table (spans two pages) that the user can access through a show/hide button. I don't want them to leave the table displayed when they save or print the form. In my form, I provide print and save buttons in my form ( I inserted a script that hides the table if the user clicks print or save).

However, if the user chooses to print or save through the Reader menu, the table (if displayed) remains displayed and /or prints. Is there any way that I can fix this easily?

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can use folder level scripts to hide the menu items via app.hideMenuItem().

But you'll have to install those scripts on every system separately.

Another way would be to use the prePrint and preSave events in a form to show/hide form objects.

In this way it doesn't matter, how a user executed a save or print action.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You can use folder level scripts to hide the menu items via app.hideMenuItem().

But you'll have to install those scripts on every system separately.

Another way would be to use the prePrint and preSave events in a form to show/hide form objects.

In this way it doesn't matter, how a user executed a save or print action.

Avatar

Level 3

I used the prePrint event to hide the reference table and that seems to work fine.

Thank you!