Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

adobe livecycle hide button - javascript

Posted on 2011-09-06
1
Medium Priority
?
775 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This article discusses how to create an extensible mechanism for linked drop downs.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

618 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