Do javascript: Fill form with no name?

Have a form that needs to be filled out I have no control over how the form is designed.
<form method="post" action="">
<input type="text" name="TITLE" value="" size="40" maxlength="100" class="text"/><input type="text" name="URL" value="" size="40" maxlength="255" class="text"/>
</form>
I usually use this.
do JavaScript "document.forms['formname']['fieldname'].value = '" & VarName & "'" in document 1
But with out the form having a name it won't work, and I am lost, I don't normally work with javascript.

Depends on what else is one the page, but this works for static page items:
<pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
title="Copy this code and paste it into your Script Editor application.">tell application "Safari"
activate
do JavaScript "document.getElementsByTagName('input')[0].value='Title Of Page';
document.getElementsByTagName('input')[1].value='http://www.url.com'" in document 1
end tell</pre>
Hope this helps...

Similar Messages

  • Save the PDF Form with Field Name

    HI Guys,
    I have the Requirment in PDF Form.The PDF Form is generated with the Adobe Live Cycle Designer.After generating the PDF Form the user filled the details in the form and save the filled form.while clicking the Save button the default PDF name is displayed in the File name box.The Requirement is iam having one field in the form.The Field name value should needs to displayed in the File name box during saving.Is it possible.Once its possible please let me know.This is needs to be delivered very shortly.
    Thanks & Regards,
    SatheshKumar R

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

  • Fill form with Java... problem with HTTP Unit and notunique formnames

    Hello
    If I try to check/uncheck a checkbox in a form with httpunit, i get the illegalargument exception:
    Exception: com.meterware.httpunit.FormParameter$IllegalCheckboxParameterException: Attempted to invoke method 'setCheckbox' for parameter 'RESPONSE/ChoiceA', which is not a unique checkbox control.
    But HEY! if we have a look at the source code of the form we see very clearly that the name is not unique, but the value is very well unique.
    <input type="radio" checked="true" name="RESPONSE" value="ChoiceA"/>You must stay with your luggage
    <input type="radio" name="RESPONSE" value="ChoiceB"/>Do not let someone else look after your luggage
    <input type="radio" name="RESPONSE" value="ChoiceC"/>Remember your luggage when you leave
    Has somebody an idea what I could do? How I could fill out this form anyways because I really have to find a way...
    Is there a different solution than httpunit?
    thanks
    code
    import com.meterware.httpunit.*;
    public class Example {
         public void doIt()
    try {
    // create the conversation object which will maintain state for us
    WebConversation wc = new WebConversation();
    // Obtain the main page on the meterware web site
    WebRequest request = new GetMethodWebRequest( "http://www.pharmasquare.org/tetrodo3/secured/action/qtitest.do?method=getAssessmentTest&assessmentTestId=qtiexamples&collectionPath=qti2.1&testCollectionPath=&assessmentItemId=luggageChoice" );
    WebResponse response = wc.getResponse( request );
    WebForm form = response.getForms()[0];
         form.toggleCheckbox("RESPONSE","ChoiceA");
    String[] stringis = form.getParameterValues("RESPONSE");
    request = form.getRequest();
    response = wc.getResponse(request);
    } catch (Exception e) {
    System.err.println( "Exception: " + e );
    public static void main( String[] params ) {
         Example ex = new Example();
         ex.doIt();
    public void print (String s)
         System.out.println(s);
    }

    You're trying to go out of the Java sandbox and access the client. For this, it's neccessary to sign your jar-file.
    Also, this is a Forms related question. If I were you, I would definitely have asked this in the Forms forum - not in this Application Server forum.
    The Forms Forum - Forms
    Regards,
    Martin

  • LightSwitch Fill Form with a Query

    Hi,
    I added a button in an add and edit screen to edit information related to the paticular id I am editing but need to launch another edit screen so I can edit the information stored in another non relational table with the id in the previous screen. Since
    I do not have an entity information of that table I needed to pass the id and the edit form be fill in with a query so I can edit that table after.
    Anyone has an idea would appreciate it.
    Thanks,

    Yeah, the way I usually go about doing that sort of thing is by overloading the main constructor of the Form which does the editing..
    So for example:
    public Form1(){
    Initialise();
    You'd also make another like this:
    public Form1(int id){
    Initialise();
    LoadRecord(id);
    To open up the form you'd write this in the event handler of the original form:
    Form frm = new Form(123);
    frm.Show();/frm.Visible=true; (whatever it is)
    Hope this helps,
    Antony
    :D

  • Printer wont print: "HP Smart Web Printing is not compatible with FF 37.0.1" Also, I can't fill forms with Robo Form

    No details needed

    I understand that the message gives that Firefox does not support the printer giving issues as well as Robo Form is not filling in forms for Firefox.
    Please consider the troubleshooting steps suggested:
    *[[Fix printing problems in Firefox]]
    As for the addon/extension I can recommend trying Safe Mode to see if there is an issue with one of the add ons, or disable each of the extensions to troubleshoot what might be interacting with this feature.

  • Fill array with file names

    What am I missing?  I've got alerts that should pop up if it works and if it fails but instead it does nothing, I'm sure its possible to create an array that is made up of all the file names of a folder.  In the past I've had to enter all the values one a time and some of these folders have 200+ files in it.
    #target illustrator
    filltotesTempArr
    function filltotesTempArr()
    var toteTemparray = new Array(toteTemps)
    var toteTempPath = Folder ("S:/Illustrator JS Palette/Direct Template Calls/Totes");
    var allFiles = artPath.getFiles(order);
    var toteTemps
    if (allFiles.length > 0)
        for (i=0;i<allFiles.length;i++)
                toteTemps = toteTemps + app.open(allFiles[i] )
              }//end for
          alert("Your array has the current values:" + toteTemps);
        }//end if
        else
        alert("Script to fill Totes Templates Array has failed");

    I need to take all the files inside of a folder, and put their file names in an array like this;
    var totesarr1= new Array ("A165331","A165332","A165333","A165334","A165337","A165338","A165344","A165348", "A165349",
    "A165352","A165353","A203","A210","A211","A214","A222","A229","A231","A232","A234","A248","A250","A252","A268",
    "A271","A272","A278","A290","A292","A322","A323","A324","A325","A327","A330","A402","A404","A405","A407","A408",
    "A409","A410","A411","A414","A415","A417","A420","A422","A423","A424","A425","A427","A430","A436","A438","A439",
    "A440","A441","A443","A446","A448","A449","A450","A451","A452","A454","A455","A456","A460","A461","A468","A470",
    "A490","A495","A497","A500","A508","A509","A510","A512","A513","A514","A518","A524","A525","A526","A527","A530",
    "A533","A534","A536","A543","A581","A582","A587","A602","A619","A624","A705","A707","A710","A714","A715","A739",
    "A740","A741","A742","A743","A744","A745","A748","A750","A751","A752","A753","A754","A755","A756","A763","A800",
    "A801","A804","A806","A811","A815","A817","A818","A819","A824","A832","A835","A836","A838","A841","A844","A848",
    "A849","A852","A854","A856","A857","A859","A861","A863","A865","A866","A868","A871","A873","A877","A879","A881",
    "A885","A888","A890","A894","A899","A900","A902","A904","A940","A941","A943","A944","A945","A948","A97307","A97309",
    "A97313","A97314","A97315","A97316","A97321","A97326","A97340","A97342","A97708","A97715","F742","F751","V6432");
    so the closest thing that I can come up with is this;
    #target illustrator
    filltotesTempArr
    function filltotesTempArr()
    var toteTemparray = new Array(toteTemps)
    var order = new RegExp(input);
    var toteTempPath = Folder ("S:/Illustrator JS Palette/Direct Template Calls/Totes");
    var totetempnames = toteTempPath.getFiles();
    var totetemps = new Array ()
    var allFiles = toteTempPath.getFiles();
    if (allFiles.length > 0)
        for (i=0;i<allFiles.length;i++)
                toteTemps = toteTemps + "," + app.open(allFiles[i])
              }//end for
          alert("Your array has the current values:" + toteTemps);
        }//end if
        else
        alert("Script to fill Totes Templates Array has failed");
    alert ("Script is Done")
    but even this dosn't work like it should
    #target Illustrator
    GetTempNames;
    function GetTempNames ()
    var toteTempPath = Folder ("S:/Illustrator JS Palette/Direct Template Calls/Totes");
    var toteTempNames = toteTempPath.getFiles()
    var totetemparr = new Array ( toteTempNames )
    alert ("script is done get ready");
        alert ("Here " + totetemparr);
    so now I'm at a loss

  • Cannot save filled forms with Acrobat Reader

    I have installed on my Windows XP, Acrobat Reader 9.5. I get a pdf file from Internet that has in it some forms that I must fill in and send back to pdf creator. The problem is that when I open this file, I have posted a message on the upper left side: "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records." But of course, I must be able to save this file with filled data in form. Is that possible? Can you explain me what happens? I'm a newbie to this topic (in fact I'm a linux user. I'm trying to solve some of my sister issues).
    Thanks in advance!

    Prior to Reader 11, Reader was unable to save a filled-in form unless the document was Reader-enabled. This is something that the creator of the form does with either Acrobat or LiveCycle Reader Extensions. If your document is not Reader-enabled, you will see the message that you're getting. Unfortunately, Reader 11 is not available for Linux.

  • I am trying to create a fill form with acrobat and I keep getting error

    I need to chat with customer service

    Hi osheady,
    If there's something that I can help you with here, I'd be happy to. What are you using the create the form, and what error are you receiving?
    I look forward to hearing back from you.
    Best,
    Sara

  • How to "save as" a pdf form with another name? So not over the same document, is it possible?

    I have made a form in acrobat pro and i want use this form on the Ipad. But on the Ipad with acrobat reader save the document automatically and i want save all the versions and not finally one document..Can somebody tell me this is possible or not?!

    It sounds like you want to duplicate a PDF document. View the document list, and click Edit. Select the document to be duplicated. Select the Duplicate/Move icon (on an iPhone the icon shows two documents). Select Duplicate.

  • Call a Form with its name instead of its number

    instead of using : http://servername:7777/pls/portal30/PORTAL30.wwa_app_module.new_instance?p_moduleid=1556977996
    I'd like not to use ModuleID but module name instead. Is it possible?

    Hi,
    What you need to do is the following:
    1. Create a link for your form component in Portal, e.g. the link is: Link_to_your_module.
    2. Put in the following code in where you want to call the module:
    Declare
    url varchar2(100);
    begin
    url := PORTAL30.wwv_user_utilities.get_url ('yourapp.LINK_TO_your_module');
    portal30.wwv_redirect.url(p_url =>url);
    end;
    Hope this works!
    Kelly.

  • Fill form with JS data; dropdown

    Looking for a way to have a drop down of people or companies. When you select a company the city, state, etc the indo will auto fill text boxes. what is my best options to go about this?
    I have been trying to use this http://acrobatusers.com/tutorials/js_list_combo_livecycle1 and change the code to get it to work for what Im tryign to do but no success.
    Any help would be awesome. Thanks.

    Here's a link to a sample form that behaves that way: https://workspaces.acrobat.com/?d=gZNDS8dQQNqvwocUufXHNQ
    The script that controls it is in the Keystroke event of the combo box. Pay attention to how the combo box is set up, particularly the export values of each item. If you have any questions, post again.

  • Filling PDF forms with in-house software - pdf no longer works in Reader

    I have created a PDF form in Acrobat 8.1.0 Pro and enabled the "Filling of form fields" feature.
    1)
    I can open this form in Adobe Reader, fill fields, save, load / repeat process as many times as I want with no problems.
    What we would like to be able to do is "pre-fill" some of the form fields using an in-house application with some data and save. At a later time, users would need to add additional information.
    If I open one of these pre-filled forms with Adobe Reader, it immediately gives an error message and closes the file:
    "This document contained certain rights to enable special features in Adobe Reader. The document has been changed since it was created and these rights are no longer valid. Please contact the author for the original version of this document."
    Other programs such as "Foxit" and "AmiUni PDFSuite" don't seem to care that the file was pre-filled.
    Is this because Adobe Reader actually checks some sort of CRC or signature which was created at the time the initial PDF form was created by Adobe Pro - and if the signature is no longer valid Adobe Reader won't go any further?
    2)
    What would be the options to get around this problem? Is there a way to accomplish this with Adobe Pro? We need to be able to pre-fill some fields in the form from our application, then have the user complete filling the form manually.
    Thanks!

    Enabling usage rights in reader grants specific rights for a given document - form fill in, saving, signing, etc. Reader checks if something else has been done to the document beyond the scope of the rights granted and apparently the program you are using to add the form data is triggering this test for some reason. There is a digital signature which isused to check this, plus an analysis of what has changed in incremental save sections.
    What you are trying to do should work in principal. If the developer of the application is available, have them look at what else is being changed besides the addition of form data. They should be able to fix the problem.
    If the pre-fill data is the same for each user, you can definitely run the pre-fill and then enable usage in reader.

  • Submitting form with attachments.

    Hi,
    I have a simple need. I am stucked in it. What i need to do is:
    Step 1: User1 starts opens a pdf form inside LC Workspace, fill it, attach files (Reader Extended) and then submit it.
    Step 2: User2 receives the filled form with attcachments. Can view attachments and save them in repository.
    I am stucked at step 1. User is able to fill the form, add attachments but can't submit it. If I am not enabling the Reader Extensions for attachments (Disabling functionality to attach files) then it works fine. But when using with attachments option, it fails. It gives no error, no message and does not passed to the 2nd user.
    Is there any special requirement in developing such process/form ??
    Please help me out on it.
    Abhinav

    I've studied the HTML generated by UIX and it has following bugs and misfeatures:
    1. Misfeature: Submitting with Enter works ONLY if there is exactly one text field in the form (no submit button is actually needed), as Brian Stoler wrote. I don't understand reason for this.
    2. Bug: UIX generates javascript function "_submitOnEnter" which is called as event handler for "onKeyPress" event. But this function is erroneously generated multiple times, once for each form in the page. Browsers (Mozilla and IE) use the latest implementation. This function is different for forms with one text field and for forms with more text field, but only the first one can do the job. As a consequence of this, Enter can submit the form only if the last form on a page has single text field (which is for example not the case of search form with single field above another form...)
    Tested with UIX 2.1.7 in JDeveloper 9.0.3.3, using UIX as JSP tag library.
    Workaround:
    1. Use Opera browser: it submits form with enter key even if there is no submit button (this does not work for the first text field in the form, because it has "onkeypress" event handler).
    2. Implement this feature by hand yourself, if you really need it (see below).
    3. Use accessKey: allows to submit form with Alt+<key> combination (followed by Enter with IE).
    Implementing Enter key submits with Javascript:
    1. Put the following function to the header (or to javascript library):
    function enter(e, frm) {
    var kc;
    if(window.event) kc=window.event.keyCode;
    else if(e) kc=e.which;
    else return true;
    if(kc==13) {
    submitForm(frm,1);
    return false;
    Function copied from UIX (C).
    2. Add this event handler to each input element:
    onKeyPress="return enter(event, 'formName');"
    It is obvious that this is error prone, but it works with all browsers...
    Will this be fixed in future versions?
    Why only form with one text field can be submitted?

  • Connect Pdf Form with Air Sqllite data

    Hi, i would like to save my Pdf Form localy but i know about restrictions of 500 users (legal notes after giving advanced user permission).
    I thought about do it in air which could have my pdf form inside. I thought that people after filling form with data could save it localy by connecting PDF Form (embed in air) with Air database. So people could save it offline and fill rest form date f.e. after few days to complete it later.
    I don`t know any more option to save my form data localy (offline) without installing localhost database. Air installing is simple but i don`t know how should i start.
    Please tell me how can i connect my PDF Form with Air database?
    EDIT:Do you have any tutorials of that?

    I read also about JavaScript method of sending data from PDF form to AIR with using PostMessage (communicate throw JavaScript & HTML Object embed). Now i don`t know is there more easy way to communicate with SQL lite Air local database than using PostMessage command (more direct as setting up File>New Connection>OLEDB Database in Livecycle Designer)?

  • Copying a script name with different name

    Hi,
    I want to copy my script form which has name zform1. Now i want to copy the same script form with different name i.e zform2 in the same client.
    in my se71 window i do not have a copy icon on the toolbar.
    pls. help me on how to do this.
    Thanks,
    Rose.

    Hi,
    Please follow the steps below :-
    1. Create a SCRIPT with the new name and just save it ( No need of defining any windows, just shot description is enough).
    2. Open the newly created script in change mode and go to the tab 'Form' and press 'Copy from..' .
    3. A small wondow will pop up, wherein you need to enter your previous SCRIPT name.
    4.Once done, your script will be copied.
    Please reward points if helpful.

Maybe you are looking for