These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Make button visible depending on PC user logon id - extend to Reader

RonD
Registered: Feb 11 2010
Posts: 9

Thanks to help from this forum I have code in place that returns the user's ID to a text field and that content is then used to change the presence property of a button to visible -- assuming you have the appropriate user id.

The code works fine when opening the form in Acrobat Pro. However, a problem occurs when the form is extended to work in Adobe Reader. When the form is opened in Reader the button is visible to everyone regardless of the logon id. Does anyone know whether this is simply a feature which can not be extended or made to work in Reader?

What seems really odd is that the button is initially set to "invisible." If it wasn't going to work, then I would have suspected it wouldn't show up for anyone rather than showing up for everyone. Ideas??

Thank you,
Ron

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
How do you get the user ID? Do you use a folder level script?

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

RonD
Registered: Feb 11 2010
Posts: 9
I figured it out. The PC I was using to extend features to Adobe Reader was one of the PCs on which the button would display based on the userid - in other words the button was visible when extending features to Adobe Reader. After I removed my userid so the button didn't show when extending features, then the button was visible only on the desired PCs.

After discovering the above I initially tried to fix the problem by adding an "else" statement in my code to make the button invisible if a desired userid was not found. However, that didn't work. The only fix was either remove my userid so the button was not visible when extending features or extend the features from another PC that did not have one of the userids that would make the button visible.
RonD
Registered: Feb 11 2010
Posts: 9
radzmar wrote:
How do you get the user ID? Do you use a folder level script?
Radzmar,
Yes, I am using a folder level script that you helped me in the past. Thanks again for that assist and responding to this post as well. As I mentioned in my last post I think I have this figured out.

Rond
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Good job RonD!

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs