Solved

adobe livecycle hide button - javascript

Posted on 2011-09-06
1
738 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
arrays and radio buttons 10 35
Why is my $_POST not going to results page 10 32
Slush on text 2 8
Oracle programming for starter 14 24
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

679 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