Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Simple Java Script Message

Posted on 2011-02-18
4
Medium Priority
?
315 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 600 total points
ID: 34931750
0
 
LVL 13

Accepted Solution

by:
George K. earned 1400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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 …
Suggested Courses

636 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