Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Controlling end-user menu interaction

mandrill22
Level 3
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
radzmar
Correct answer by
Level 10
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
radzmar
Correct answer by
Level 10
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

mandrill22
Level 3
Level 3

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

Thank you!