Solved

Simple Java Script Message

Posted on 2011-02-18
4
312 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
running on tomcat not jboss eap 7.0 3 52
Free PDF readers besides Adobe Acrobat 9 113
How to log java errors in tomcat 8 37
maximize the sum of fractions 33 74
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The viewer will learn how to implement Singleton Design Pattern in Java.
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…
Suggested Courses

739 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