Solved

adobe livecycle hide button - javascript

Posted on 2011-09-06
1
717 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
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.
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

11 Experts available now in Live!

Get 1:1 Help Now