Solved

adobe livecycle hide button - javascript

Posted on 2011-09-06
1
749 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

734 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