Solved

Simple Java Script Message

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse formatting 6 73
Java Timer (static) 9 36
egit plugin on eclipse 8 40
Adobe Reader 'This document is trying to connect to' 3 9
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

895 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

15 Experts available now in Live!

Get 1:1 Help Now