Solved

Simple Java Script Message

Posted on 2011-02-18
4
313 Views
Last Modified: 2012-05-11
Hi,
I am using Adobe Live Cycle to create pdf forms. it uses java script as the basis.

Basically to start i need to know how you write a script that uses the logic if the form is NOT saved then display message you need to save the form first.

This goes on to a more complex script i need to create but i will break into small questions so you can get points.
0
Comment
Question by:valmatic
[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
  • 2
4 Comments
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 150 total points
ID: 34931750
0
 
LVL 13

Accepted Solution

by:
George K. earned 350 total points
ID: 34933890
You could use something like

function checkifsaved(myfile)
{
 
 var acceptandsubmit = false;
...........
..........
..........

  if (acceptandsubmit  == false)
    {
        //show a message
        alert("Form not saved") ;
        return false;
    }
    else
    {
        return true
    }      
    return acceptandsubmit;
}
........................
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34934030
This is PDF js not browser based js
0
 
LVL 7

Author Closing Comment

by:valmatic
ID: 35056966
thanks
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

*Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This video teaches viewers about errors in exception handling.
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 …

691 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