Impossible to get Javascript to fill in the fields on the form.

I am very new to work with Javascript. I am tempted to reverse enginer a script that fills the form fields in a separate document when it opens. The scrpt is triggered using a button. The form opens without Ant problem. Here's the script. It is also possible that there is a problem of formatting with PDF Forms.

I work with Adobe Pro 8.

var a = this.getField("Mug").value;

var b = this.getField("Key").value;

var c = this.getField("AgncCas").value;

var d = this.getField("Mfirstname").value;

var e = this.getField("Mlastname").value;

var suppDoc = app.openDoc ("supp.pdf", this);

suppDoc.getField("Mug").value = a;

suppDoc.getField("Key").value = b;

suppDoc.getField("AgncCas").value = c;

suppDoc.getField("Mfirstname").value = d;

suppDoc.getField("Mlastname").value = e;

suppDoc.getField("Mug").setFocus ();

suppDoc.getField("Key").setFocus ();

suppDoc.getField("AgncCas").setFocus ();

suppDoc.getField("Mfirstname").setFocus ();

suppDoc.getField("Mlastname").setFocus ();

Any suggestions would be greatly appreciated.

In Acrobat XI you place under Tools - JavaScript - Document JavaScripts.

Create a new item, delete all the default text in it and paste the code I

provided instead.

Not sure what the point where is in Acrobat 8...

Tags: Acrobat

Similar Questions

  • Is user of my site need Web DC acrobat to be able to fill in the form that I convert?

    I need help understanding... I have several forms that are currently just a PDF read only format. I want to convert them to a form that users can fill out online and submit. A few questions:

    1. the user must have acrobat DC even use the service to "fill"?

    2. can I create a form that users can fill with the exception of the signature? Once filled, they would be able to print the pdf to office form to sign and fax in. My client must be HIPPA compliant and is cautious of the GIS online.

    Hi chelseam,

    People who need to fill out the form can do it using the free Adobe Reader, you can download from this page: https://get.adobe.com/reader.html.

    Best,

    Sara

  • my pc runs research and fills in the forms she self... who runs it?

    My pc runs research and fills in the forms by itself. I did al worm and Trojan research...

    Hi geddus,

    1. what research program do you use?

    2. what security software is installed on your computer?

    (a) I recommend you run a virus scan online from the link given below and check if the problem persists.

    Microsoft safety scanner

    Also, make sure that you have the latest update of the software antivirus installed on your computer, so that it works correctly.

    (b) you can also download & run Microsoft Security Essentials on your computer.

    Hope the helps of information.
    Please post back and we do know.

  • We need a solution allowing several people to download the pdf file, fill in the form and add their own password for local storage on their own computer. Is this possible? Thanks in advance-

    We want our customers to be able to download a PDF on a Web site, fill in the form, and then save and apply their own password. Is this possible? Thank you very much in advance.

    Yes, when customers use Adobe Acrobat.

  • AT100 - impossible to get my calendar to store the dates of the annual events

    Hello.

    Cannot get my calendar to store the dates of the annual events birthdays for example.
    Option gives (annual 27 July 2012), but would it be fair (27 July each year). No way to remove year so presumably won't wait that 2012 will come along! All the other choices for weekly and monthly do not specify the year.

    Annual option should I think be the same. Tried to enter next year, but comes with (year July 27, 2013) so it looks that have to enter every year which is a pain. Someone at - it ideas.

    It's my first post he hopes in the right place.

    Thank you

    Hello

    Why you n t try another Android app like for example calendar of birthday or anniversary Assistant

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   
  • always impossible to get a handwritten signature with the stylus.

    Signature Scribble is always looking at the signature saved in folders. I need to have the signatures in real time, written by stylus on the form. I tried different things to make this field work, but it still seems to save signatures.

    Help

    Sonia

    In fact, I'll send you a PM with my email address to send the form.

  • Cannot fill out the form to Excel

    I use Adobe X Standard.

    I'm trying to export a PDF form with fields to fill in Excel.

    I tired serveral methods indicated on the site.

    Whenever I get the form registered, the data entered in the form but are not exported to excel (or word).

    I tried these approaches

    File-> save as->-> Excel spreadsheet

    Highlight the table

    -Right click

    -Copy with formatting

    -Export the selection->

    Tools-> form-> form several options-> manage form data-> export data (failed)

    All the result above the form structure during registration, but none of the data entered

    Tools-> form-> form several options-> manage form data-> merge data in a spreadsheet

    He sees all the data and creates a file, but the formatting is lost and the file is not usable.

    You can flatten the fields first, which converts the apparitions of field content page regularly. It should then be included when exported to XLS. You can do this with PDF Optimization, control upstream or JavaScript, but Standard does not include the first two and JavaScript is more difficult that it should be the standard, but you can set up a temporary bookmark and use that following the action of bookmark JavaScript code:

    Bookmark action

    flattenPages();

    Or you can use the same code in the mouse event to the top of a button that you configure to not have a visible appearance.

    If you need to do this a lot, you should get the following free JavaScript-based tool: http://www.uvsar.com/projects/acrobat/flattener/

  • My organization wants to partner with Mozilla, I filled out the form of "Work with us" several times but no feedback

    I filled out this form https://www.mozilla.org/en-US/about/partnerships/ several times and I never receive any comments. Is there a phone number I can use to get in touch with Mozilla on a potential partnership or email?

    Hi Kombuta,

    Thanks for your post, I'm sorry that you don't have a response to the form that you filled for the partnership with us. Can you tell me when you have completed the form, by chance? This will help me to direct the proper person to your form.

    Otherwise, you can also send me a private message to [email protected] with the information and I will pass along (I'm a Mozilla employee, customer management).

    Thank you and my apologies for the late reply, I appreciate your patience and your interest in Firefox OS!

    Kind regards
    Michelle Luna

  • Passes instead of filling with the form in the Adobe capture

    Hello! I was wondering if its settings that makes it possible to use the race instead of fill when I m a draw with the shape tool?

    Hi Marte,

    At the moment there is no way to customize the form capture settings. There, however, we often get a request, so I will definitely pass your along to the team.

    Sue.

  • Fill in the form with the information to another form

    I have 2 forms.  I want to automatically fill the second form with the information of the first shape.  How could I get this?  I tried to import the xml data in the first shape in the second form, and nothing happened.  All fields of the second form have the same name as the corresponding fields on the first form.  I don't know what else I'm missing / need to do.

    Any help is very appreciated!

    Thank you

    Rose.

    Data can be imported into another form, but if it is not based on the same structure or schema (having the same name is not enough), then you can map incoming data to the fields on your form (this is called binding). In the dataview tab, you can create a new data connection (use the sample xml option) and your data structure is displayed in the palette. Then simply drag and drop each data node on the ground where the data should go. An icon will appear next to the data node to indicate that it is linked. Now, when you import the product data knows where you want the mapped data.

    You can also see where each field of the form is bound by highlighting the classified and clicking on the link tab.

    Paul

  • By the way only filled out the form to the URL objects?

    I have a form on search.cfm, that uses GET to pass information to another page, output.cfm. It works as I want, but I have trouble with my SQL statement because some fields are empty or simply "' complicated queries. I did experiment with solutions, but ColdFusion gives me a page error when I try to compare an undefined value to "" makes it difficult as well.

    So I wondered:
    Is there a way to make the form or the receipt page receives does not empty parameters?
    OR... a statement or function that will check if it is a value empty without giving me an error if it does not exist.
    OR... a simple code that worked for you in the past.

    the combination of len and the filling is what I usually use to find empty them
    form fields. If you need to combine the existence check
    field, you can do something like:


    Do something with this form field, it exists and has a value.

    You can change the 'aFieldName' to a variable to dynamically check many
    fields if you wish.

    Freffie wrote:
    > I have a form on search.cfm uses GET transmit information to another
    > page, output.cfm. It works as I want, but I'm having trouble with my SQL
    > Statement because some fields are empty or simply "' complicated queries.
    > I did experiments with workarounds but ColdFusion gives me a page error
    > When I try to compare an undefined value to "" makes it difficult as well.
    >
    > While I was wondering:
    > Is there a way to make the form or the receipt page receives does not empty parameters?
    > OR, a function, or a statement that will check if it is a value empty without
    > gives me an error if it does not exist.
    > OR... a simple code that worked for you in the past.
    >

  • keyboard does not not when filling out the forms of web of wi - fi

    Hi all

    I have a very strange problem and I hope someone can help me to solve it.

    When I try to connect to a public wireless network (example: I'm currently staying in a hotel and connect to hotel WiFi in my room)-I have to fill out the mandatory wi - fi (username & password) to access the internet through the hotel wi-fi.

    My 5s iphone detects the wi - fi network and once I chose the particular network hotel wi-fi to join in setings, automatic logon forms just asking me to enter username/password hotel provided.

    When I try to enter the user name - my keyboard becomes TOTALLY INSENSIBLE! I can't fill my username information at all. The keyboard appears on screen - but nothing on the keyboard working!

    When I move to the password field - all right. The keyboard starts responding and I am able to fill in the password. The keyboard becomes normal.

    I've now faced this problem in 2 different hotels and a hospital - all these places gave me a name of user and password I need to fill in the login screen to use their wi - fi connection. I still have the same problem.

    I'm having this problem on iOS 9.1 and 9.2 (my wife's phone and my phone). We both use iphone 5s.

    Can someone pls!

    Hi bigbalooka,

    If the iPhone keyboard unresponsive or crashes

    • Make sure that you are running the latest iOS Version
      • Settings > general > software update
        • If you are up-to-date, you will see a message that says: "your software is up-to-date."

    If you're still having problems:

    • Force restart the iPhone:
      • Press and hold the sleep/wake button and the Home button for about 10 seconds, or until the Apple logo appears.

    If you still have problems (again):

    • Reset all the settings on your iPhone
      • Settings > General > reset > reset all settings and enter your access code if you are required.

    I hope I helped solve your problem today. If you need more assistance, feel free to ask

  • After filling out the forms to save read-only

    Hello.

    The designer I work with has created a PDF for me with editable fields.   I would edit correct modifiable with customer information fields, and then save the file read-only - or protected so that they cannot modify the fields.  Is this possible?

    Hi sheriomernik,

    Yes, you can implement some restriction of editing a file PDF using Acrobat application use security permissions to protect PDF files in Adobe Acrobat | Adobe Acrobat DC tutorials.

    Or you can simply ask the PDF Creator to add a signature field, once you fill & sign the PDF form it locks the PDF fields.

    Kind regards
    Nicos

  • Error message: "this PDF document contains shapes. The filling of the form fields is not supported. »

    Hello, I am running this OS: Microsoft windows XP Professional version 2002 service pack 3

    Just downloaded the latest version of Adobe reader

    Using a Firefox update version.

    There is an online form I need to fill in adobe reader online...  I could download it, but then I have to FAX or mail it, as apposed to send directly to the Organization, that it is from via a button 'SEND' at the end of the form...  I don't have a printer.

    Thanks for any help you can give.

    Are you using the Firefox PDF Viewer, or the Adobe PDF plugin?  The viewer PDF of Firefox is not compatible with many modern features of PDF.

    See http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

Maybe you are looking for

  • 2016 Excel is very slow

    I have a new MacBook Pro 3.1 GHz i7 with 16 GB 1876 MHz DDR3. I'm working with an excel file which contains 91 000 lines and making calculations requiring all ranks to calculate, excel moves very slowly. Is there something I can do to speed up the pr

  • Skype messages are not in order

    Very well. Since last night, Skype messages are not in order.I say, it's not wise to mobile. It's on a laptop.I have Skype restared. Nothing.I have re-installed Skype. Nothing.I disabled the YSC. Nothing.Re - syc the times. Nothing.I erased from hist

  • Ports

    I have a Pavilion all in one ms220br. At the back of the monitor, there is a green port just above my usb connections. What is the purpose of this port and what can it be used? I want to be able to use a dual monitor with this computer and I was wond

  • While booting XP, do "Windows - no disk Exception Processing message c0000013" error

    During the first part of loading Windows, I get "Windows - no disk Exception processing message c0000013; Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c ".  Then I have the options "Retry, Cancel, continues.  Will work only "continue."  Windows will not loa

  • HP dv4-2045dx system recovery question

    Then... it does not work. Let me start with how I started to work on this computer. Obtained from a co worker. Only lights. Bought a replacement motherboard and the touchpad assembly she plastic it has installed after a nightmare of screws (someone g