Writting Java Scripts to conmpile infromation on submitted forms

Do you know anyone who knows the script to write the java script for this process and hide the information in the batch process of a finished form.

I realize you may not be a developer, but your question doesn't really make sense from a development standpoint. Perhaps if you described your workflow and what parts you want scripted / automated, then we would have a better idea of how to help you.

Similar Messages

  • How to write Java Scripts in Apex

    Hi All,
    Can any on tell me how to write Java Scripts in Apex.
    Thanks in Advance,
    Mukund

    If you want to link your custom JavaScripts to an Apex page, you have several options:
    1. Add an HTML Region on Page 0 (Script will be written to every page) called something like "JavaScript & CSS". In this region add your Script to the region source like this:
    <script language="JavaScript">
    function hell ()
    alert ("Hello World");
    </script>
    2. Add a similar region to the page you are working on (can only be accessed on this page)
    3. Create an external JavaScript file and either load it into the WORKSPACE or into the images (/i/) directory on the server. You can then link the JS into you page via modifying the Page Template.
    Hope that makes sense. Let me know if you want any further help with option 3.
    Duncs

  • In which part of the page i can write java script

    Hi
    I'm new with ADF and web development
    I have a java script function that show a tooltip.
    This is the function:
    *function positionTip(evt) {*
    *     if (!tipFollowMouse) {*
    *          standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body*
    *          mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;*
    *          mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;*
    *     // tooltip width and height*
    *     var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;*
    *     var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;*
    *     // document area in view (subtract scrollbar width for ns)*
    *     var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;*
    *     var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;*
    *     // check mouse position against tip and window dimensions*
    *     // and position the tooltip*
    *     if ((mouseX+offX+tpWd)>winWd)*
    *          tipcss.left = mouseX-(tpWd+offX)+"px";*
    *     else tipcss.left = mouseX+offX+"px";*
    *     if ((mouseY+offY+tpHt)>winHt)*
    *          tipcss.top = winHt-(tpHt+offY)+"px";*
    *     else tipcss.top = mouseY+offY+"px";*
    *     if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);*
    My ADF page source code is
    *<?xml version = '1.0' encoding = 'windows-1252'?>*
    *<page xmlns="http://xmlns.oracle.com/uix/controller"*
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:myTemplate="selfservice">
    *<templates xmlns="http://xmlns.oracle.com/uix/ui">*
    *<templateImport source="mainTemplate.uit"/>*
    *</templates>*
    *<content>*
    *<dataScope xmlns="http://xmlns.oracle.com/uix/ui">*
    *<provider>*
    *<!-- Add DataProviders (<data> elements) here -->*
    *</provider>*
    *<contents>*
    *<document>*
    *<metaContainer>*
    *<!-- Set the page title -->*
    *<head title="General Manager"/>*
    *</metaContainer>*
    *<contents>*
    *<body>*
    *<contents>*
    *<form name="form0">*
    *<contents>*
    *<myTemplate:SelfService title="General Manager">*
    *<contents/>*
    *<tabs/>*
    *<pageButtons/>*
    *<globalButtons/>*
    *<pageHeader/>*
    *<start/>*
    *<end/>*
    *<about/>*
    *<copyright/>*
    *<privacy/>*
    *<corporateBranding/>*
    *<productBranding/>*
    *</myTemplate:SelfService>*
    *<formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>*
    *<table model="${bindings.HrsVEmpPhonesView1}" id="HrsVEmpPhonesView13" partialRenderMode="multiple" partialTargets="_uixState" showAll="yes" width="900">*
    *<contents>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'EmpNameAr')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model="${uix.current.EmpNameAr}" columns="10" readOnly="true" onMouseOver="&quot;showTooltip(event,'This is a tooltip with a transparent shadow effect. Can you see the letters underneath the shadow?');return false&quot;"/>*
    *</contents>*
    *</column>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'JobDescr')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model="${uix.current.JobDescr}" columns="10" readOnly="true"/>*
    *</contents>*
    *</column>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'PhoneExt')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model="${uix.current.PhoneExt}" columns="10" readOnly="true"/>*
    *</contents>*
    *</column>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'CntCellPhone')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model="${uix.current.CntCellPhone}" columns="10" readOnly="true"/>*
    *</contents>*
    *</column>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'CntHomePhone')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model="${uix.current.CntHomePhone}" columns="10" readOnly="true"/>*
    *</contents>*
    *</column>*
    *<column>*
    *<columnHeader>*
    *<sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'IaigcEmail')}"/>*
    *</columnHeader>*
    *<contents>*
    *<textInput model= "${uix.current.IaigcEmail}" columns="10" readOnly="true"/>*
    *</contents>*
    *</column>*
    *</contents>*
    *<tableSelection/>*
    *</table>*
    *</contents>*
    *</form>*
    *</contents>*
    *</body>*
    *</contents>*
    *</document>*
    *</contents>*
    *</dataScope>*
    *</content>*
    *<handlers>*
    *<!-- Add EventHandlers (<event> elements) here -->*
    *<event name="goto sort" source="HrsVEmpPhonesView13">*
    *<invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">*
    *<parameters>*
    *<parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.HrsVEmpPhonesView1Iterator}"/>*
    *<parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>*
    *</parameters>*
    *</invoke>*
    *</event>*
    *<event name="select" source="HrsVEmpPhonesView13">*
    *<set target="${bindings.HrsVEmpPhonesView1Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'HrsVEmpPhonesView13')}"/>*
    *</event>*
    *</handlers>*
    *</page>*
    I want to add this function to my page
    In which part exactly i can write this function
    thanks in advance

    To add to this, if you prefer you can separate your JavaScript from your JSF pages.
    Add a folder (I named mine 'js') to your application's ViewController project's public_html folder.
    Via JDeveloper, create a new JavaScript file inside your newly created folder and place your JavaScript functions inside it.
    You can then 'load' the .js file using the method Shantala described, with the addition of an added 'source' property to the af:reference tag.
    (This can also be a URI reference to a JavaScript file hosted on a web server)
    <f:facet name="metaContainer">
      <af:resource source="/js/myJsFile.js" type="javascript"/>
    </f:facet>The benefits of this 'split' are cleaner JSF page source and also code-highlighting and formatting within the .js file making finding and fixing bugs in your JavaScript much easier.
    It appears however, that when using <af:resource> to load scripts, once the page has been submitted even once, the JavaScript is no longer available to the page. Which isn't very useful.
    A solution is to use <trh:script>.
    Add xmlns:trh="http://myfaces.apache.org/trinidad/html" to your <jsp:root> tag and install the library.
    then in place of the above code use:
    <f:facet name="metaContainer">
      <trh:script id="script1" source="/js/myJsFile.js"/>
    </f:facet>Now after a page submit the JavaScript still functions.
    Edited by: Matthew Carrigy on 12/08/2009 10:39

  • How to write Java script for refering the 1st page text field from 2nd page?

    Hello I am developing an VISITOR info interactive form with webdynpro ABAP, its with 2 pages. Their heirarchy is,
    VISITOR_form
        |
        |
        |------Page_1
        |            |
        |            |
        |            |------Text_Field_A_1
        |            |
        |            |------Text_Field_A_2
        |
        |------Page_2
                     |
                     |
                     |------Text_Field_B_1
                     |
                     |------Text_Field_B_2
    Now, i have selected the 'Text_Field_B_1' of page_2 and writing the Java script, my requirement is; If Page_1's 'Text_Field_A_2' has a value of "Value_ABCD", THEN the 'Text_Field_B_1' of page_2 should be 'readOnly'. Pls let me know Wht is the Java script for this requirement?

    if (xfa.event.newText=="ABCD")
    VISITOR_form.Page_2.Text_FieldB_1.access ="readOnly";
    place script on change event of Text_FieldA_2

  • Urgent !!! - Java script help for events in adobe form

    Hi ,
    We have requirement  where we have 5 buttons on interactive form which will retrive data from R/3 system .
    1) How can i distingish the event of each button  ?
    For Ex : We have 5 buttons namely , GetPlantcode , GetStatus, SubmittpSAP etc..
    We hav only 2 events on adobe form - Submit to SAP and SAPCheckFields.
    Please let me know some alternative by which i can sent some variable to webDynpro which distinguishes them.
    2) How to set a value for the context variable on button click event ?
    Ex : I have a context node ( data node ) bind to adobe interactive adobe component on a webDynpro application. If i want to set Selectindicator ( value attribute in data Node ) a value on a button click , Please let me know the java script how i can do this.
    Happy New Year for all
    Nanda

    Hi ,
    We found one work around for this. It seems to solve our issue for now.
    Set a text field on adobe and try to set it with some value in each button click. We can get retrived that value in webdypro application through context bind value node to text field.
    Using the value in the value node we have applied different logic in same event submit to SAP.
    Nanda

  • Creating order form and need Java Script to calculate unit price and quantity in Acrobat Pro.

    Hi,
    I am creating order form in Acrobat Pro , and I have
    code
    Order Quantity
    Unit price $
    201
    500
    $ 0.52
    201
    1000
    $ 0.36
    202
    300
    $ 0.26
    202
    500
    $ 0.2
    How make Subtotal and Total price with Java script.
    I do not know how to write java script.
    Anyone can help me?
    Thanks,

    Thanks for your response. I have 2 quantities and 2 Unit price for each code, I know a simple sum in calculation it works for 1 unit price and quantity.  Can you please let me know how to do it? One of the expert sent m this:
    //change field names as needed
    var qt1 = this.getField("qt1").value;
    var up1 = this.getField("up1").value;
    var qt2 = this.getField("qt2").value;
    var up2 = this.getField("up2").value;
    event.value = (qt1 * up1) + (qt2 * up2);
    I put this in total text field (calculation tab , Custom script) , but it  did not worked.
    I appreciate it if anyone can help or give me  suggestion.

  • Use of java script in WAD.

    Hi.
    I need to write java script for reading column heading  of a table (analysis grid in WAD) and check if heading has a particular  value suppose ‘X’ , I need to highlight that column heading with a color.Kindly provide some pointers .
    Thanks in advance,
    Neetika.

    I have somehow managed to workaround the issue.
    I use one aggregation level without Stage field to allow users to modify the data and then I use another aggregation level with Stage field to process the Stages using planning functions and filters. This works.
    I am still curious on the user exit proposed by Andrey.
    Andrey can you please provide step by step on how we achieve this?
    Thanks,
    DV

  • Java/java script auto generate END Date

    Hi,
    I have a jps page with 4 fields.
    1. drop down list
    2. text box
    3. start date
    4. end date
    the problem is
    text box will allow "number of days"
    start date will get date from user on popup window
    end date has to be generate based on text box value "no of days", another filed which will retrieve from db and start date
    ex:
    if text box values is <50 and start date (user selected date) is 02-04-2010 , the end date should add 8 days from the start date.
    now the problem is calculating end date based on the start date with no of days which is given by user.
    i have spend time to write java script, but i am not able to complete the entire logic.
    please give some idea whether it can perform by java script or java bean.
    Thanks,
    Jasmin Rosline

    now the problem is calculating end date based on the start date with no of days which is given by user.
    Use the following code if you want to calculate in client side;
    <html>
    <script>
    function addVal(){
    var d = new Date(document.getElementById('dt').value);
    d.setDate(d.getDate() +eval(document.getElementById('dd').value));
    document.getElementById('result').value = (d.getMonth() +1) +"/"  + d.getDate() + "/" + d.getFullYear(); }
    </script>
    <body>
    <input type="text" id="dt" value="02/03/2011"/><br>
    <input type="text" id="dd"/><br>
    <input type="text" id="result"><br>
    <input type="button" value="add" onclick="addVal()"/>
    </body>Edited by: Pandiya on Feb 3, 2011 11:31 PM

  • How to pass values to variables in WAD 7.0 using java script

    Hi.,
    My requirement is based on WAD 7.0.
    The sales value has to displayed in WAD using graph with various chart types.
    I have created variables for plant and material group in a query.
    I have created drop down box for plant with all plants in it, check box for material group and a Submit button in WAD in FORM tag of HTML coding.
    Once all the values are set in drop down box, checkbox and if the user clicks on submit button, the values has to captured by the variables for which I have created and the graph has to be aligned to the new values in variables.
    Kindly help me how to use java script to get the values from FORM and pass it to variables.
    Regards,
    Selva

    Hi Selva,
    You do not need to use Javascript for this. Instead you can achieve this by using API Commands in WAD 7.0.
    Please configure Action on the ButtonGroup webitem to use 'Commands'.
    ->Choose Command 'Set Variables Values / SET_VARIABLES_STATE' under Commands for Web Templates
    ->Set Display Variable Screen setting to OFF
    ->Choose Query Variable for Plant, Select Variable Type as 'Binding Type', Binding Type as 'Data Provider Selection', Data Provider as the one you have assigned to the Dropdown webitem, Characteristic as 0PLANT or as that assigned to the Dropdown webitem
    ->Repeat above steps for Query Variable Material Group
    Now when you make a selection from the Dropdown webitems, the Chart output will change accordingly. Let me know if this helps.
    --Priya

  • How to write JSP code in Java Script Code

    Hello friends
    I have code like
    <script language="JavaScript">
    function f()
    (some code is here)
    </script>
    Now i wants to put some JSP code in f()
    So can i do this ? IF yes then how ?
    (one solution may be make JSP function and call that JSP function from the f().So in that case how can i call JSP function from JavaScript??
    If other method is there then please mail me

    If it's a simple matter of mixing client-side code with server side code, it can be done so long as you're using the server-side to write the client-side.
    For example:
    <h1>Good Morning Mr. Phelps</h1>
    <input name=anybodyFunction type=text>
    <% if (userIsAdmin) { %>
    <input name=adminOnlyFunction type=text>
    etc.
    <% } %>
    <h1>This browser will self-destruct in ...</h1>
    That's JSP (inside the <% %>) mixed with HTML.
    Javascript goes 100% on the client-side. If you're writing JSP with inter-mixed HTML, you might have to inter-mix the java-script.
    For example: Suppose you need to validate the form. "adminOnlyFunction", among others, is a mandatory field, and you want the Javascript to only submit the form if all mandatory fields are set. Well, if the user is NOT an administrator, then that field WILL be left blank.
    One way to handle that is with mixing JSP/HTML/Javascript on the SERVER side.
    <h1>Good Morning Mr. Phelps</h1>
    <input name=mandatory1 type=text>
    <input name=optional1 type=text>
    <% if (userIsAdmin) { %>
    <input name=adminOnlyFunction type=text>
    <% } %>
    <input name=submit type=button value=Submit onClick="checkit()">
    etc. etc.
    <script language=Javascript>
    function checkit() {
    var f = document.form;
    if (
    � � f.mandatory1.value == ""
    � � || f.mandatory1.value == ""
    � � || f.mandatory2.value == ""
    <% if (userIsAdmin) { %>
    � � || f.adminOnlyFunction.value == ""
    <% } %>
    � � � � ) {alert ("Hey! You left out a required field!!");}
    etc. etc. etc.
    I imagine THIS might be what is meant by "mixing JSP with Javascript", and in this particular fashion, it can be done. What you're doing is making decisions on the server side over what to write out to the client. That client code can make further decisions based on user input.
    However, once it's on the client side, you can not have anymore JSP code. The client NEVER runs JSP code.

  • I need to write a Java script to make my Art board bigger by 1 (one) inch on the Width and Length, Regardless of the Content?

    Hi,
    I am currently using "Visible bounds" (java script)to add 1 inch to the width and to the Length of my Art board, but when i make a clipping mask it actually reads the hidden content from the Clipping mask and makes conforms my art board to that particular shape. Am using Adobe illustrator cs6 Here is My Code:
    var myDocs = app.documents;
    var i = 0;
    for (i = myDocs.length-1 ; i >= 0; i--)
        var doc = myDocs[i];
        app.activeDocument= doc;
        var myVisibleBounds = doc.visibleBounds; //Rect, which is an array;
        myVisibleBounds[0] -= 36;
        myVisibleBounds[1] += 36;
        myVisibleBounds[2] += 36;
        myVisibleBounds[3] -= 36;
        doc.artboards[0].artboardRect = myVisibleBounds;
    All i Want is to add 1 inch to my width and length and this does it but if i have a clipping mask it will pick up the bounding box i guess? and it will conform it to the shape... any help please... Try my code and you will see that it does add 1 inch but now make you artboard lest say 12" x 12" and make a shape bigger than the art board and you will see how it adds 1 inch to the art board based on that shape...  now if you make a clipping mask to fit that shape in the 12" x 12" art board you will still get 1 inch bigger than the shape thats being clipped ... 

    yes, visible bounds is reading the non-visible masked objects too.
    you're going to have to do it the hard way, loop through all your objects to get your bounds manually, and while you're at it, test for clipping masks and use the masking path instead.

  • How can I hide what I write in Java Script

    If I write a script, I offer it to many one to use it, but I don’t want to anyone to see what I write in the script, how can I do?

    In ESTK go to "File" and select "Export as Binary..."
    HTH
    Marijan (tomaxxi)
    http://tomaxxi.com

  • HELP!!!!!! - live cycle/java script

    Sorry, but I am very frustrated with Adobe. I have spoken with customer service on the phone and have been on this site at least a dozen times and thus far no one has been able to help.
    I am trying to create a new time sheet within Live Cycle. I originally copied our design from an excel spread sheet as the Live Cycle template did not meet our needs. My problem is I have 10 columns across and 19 rows. I need to have the columns calculate across and then total at the bottom. I believe I need to have Java Script written to accomplish this, however not sure how to proceed.
    I can email the document for help

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • Help writing first Java Script

    HELP!! I am writing my first Java Script for a class but cannot figure out what I am doing wrong. I have created a from and need to write a script to verify that all form entries are filled before allowing the data to submit. Can some one please look at my code below and tell me what I am doing wrong!! Thank you
    <HTML>
    <HEAD>
    <TITLE>Project 8 IT 117 Section 01 6/13/2003</TITLE>
    </HEAD>
    <BODY BGCOLOR="#007FFF">
    <FONT FACE="Arial">
    <STRONG><UL>
    <LI>Search our stock
    </UL>
    <UL>
    <LI>Place an order
    </UL>
    <UL>
    <LI>Out-of-print searches
    </UL>
    <UL>
    <LI>Events calendar
    </UL></STRONG>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function submit() {
         alert("Information submitted!")
    function verify() {
         if document.info.elements[0].value=="" ||
         document.info.elements[1].value=="" ||
         document.info.elements[2].value=="" ||
         document.info.elements[3].value=="" ||
         document.info.elements[4].value=="" ||
         document.info.elements[5].value=="" ||
         document.info.elements[6].value=="" {
              alert("Please complete each field")
         }     else {
              submit()
    //-->
    </SCRIPT>
    <H2>Sign up for our mailing list.</H2>
    <FORM NAME="info">
    <STRONG>First Name:<INPUT TYPE="TEXT" SIZE="20" NAME="FIRSTNAME">
    Last Name:<INPUT TYPE="TEXT" SIZE="20" NAME="LASTNAME"><BR>
    Street Address:<INPUT TYPE="TEXT" SIZE="50" NAME="ADDRESS"><BR>
    City:<INPUT TYPE="TEXT" SIZE="20" NAME="CITY">
    State:<INPUT TYPE="TEXT" SIZE="6" NAME="STATE">
    Zip Code:<INPUT TYPE="TEXT" SIZE="15" NAME="ZIPCODE"><BR>
    E-Mail:<INPUT TYPE="TEXT" SIZE="50" NAME="E-MAIL">
    <BR>Click here to submit this information. <INPUT TYPE="BUTTON" VALUE="Send now!" onClick="SUBMITTED()"></STRONG>
    </FORM>
    </FONT>
    </BODY>
    </HTML>

    Just a thought, but shouldn't you be calling "verify()" instead of "SUBMITTED()" in your onClick handler? And warnerja is right, javascript is not really java.

  • Using Java Script in Adobe Acrobat

    I am attempting to create input forms using Adobe Acrobat. I've got the form created, and most of the functionality works. The only issue I'm having is that my end users need to be able to fill out the form, click the Submit button, and the form data needs to be sent to an e-mail address for processing. I don't need the form to be saved and sent as a PDF attachment, I just need the form data to be submitted as the BODY of an e-mail. I was told I needed to write a Java Script for this, but I don't know the first thing about that. Can anyone help me out with a Javascript they already use? I've got a week to make these forms work.

    Most web hosting services will have a mailform type script installed and available for use. If you're running your own web server, such scripts are freely available. The form just needs to be configured correctly to work with the server script. When the form is submitted to the web server, the server-side mailform script reads the incoming data and generates an email that includes the name/value pairs in the body of the email. There are literally thousands of such scripts available, to you'd have to refer to their documentation for information on setting up the form to submit to the script you want to use.
    No scripting is necessary in the form in order to submit to the web server, thought the submitForm method can be used and offers a bit more flexibility. For example, you can use a script to check the form for completeness/correctness before submitting and abort if something is wrong.
    A major advantage of submitting to a web server is it is generally far more reliable than the alternative of relying on the user's system to send the email. It can also be secured relatively easily with HTTPS/SSL, though that just covers the form submission and not when the server sends the email.

Maybe you are looking for