Solved

Simple Java Script Message

Posted on 2011-02-18
4
302 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
  • 2
4 Comments
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 150 total points
Comment Utility
0
 
LVL 13

Accepted Solution

by:
George K. earned 350 total points
Comment Utility
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
Comment Utility
This is PDF js not browser based js
0
 
LVL 7

Author Closing Comment

by:valmatic
Comment Utility
thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

772 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

12 Experts available now in Live!

Get 1:1 Help Now