Solved

adobe livecycle hide button - javascript

Posted on 2011-09-06
1
722 Views
Last Modified: 2012-05-12
I have a pdf form that I am building in Livecycle. I have a password field and when the user enters the correct password the submit button will appear. This portion of the form is working, but the problem is that when the form first opens the button is visible. It only turns invisible when the user click the "Check Password" button for the first time.

If I try to set the button to "invisible" then the button is always invisible, even when the correct password is entered. The only code on the page is this:

 form1.#subform[0].Button1::click - (JavaScript, client)

if (TextField2.rawValue == "1") {
EmailSubmitButton2.presence = "visible";
}
else {
EmailSubmitButton2.presence = "invisible";
}

I've attached the form (password is 1 and button is at bottom) if anyone could help me out I would really appreciate it. This has been driving me crazy.

Thanks
system-access-request-draft05.pdf
0
Comment
Question by:elliottbenzle
1 Comment
 
LVL 16

Accepted Solution

by:
sjklein42 earned 500 total points
ID: 36493440
This may help:


http://forums.adobe.com/thread/871817

...

Presence properties not working (hidden, invisible, visible)

So I just recently got introduced to LiveCycle ES version 8.2 and I've been messing with things and creating buttons to give myself a better understanding of the thing. I've run into an issue where the presence values aren't working correctly. I've got a working knowledge of Javascript and XML but I can't find where my problem is.
...


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article discusses how to create an extensible mechanism for linked drop downs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now