Using dynamic referencing in PDF Form with Checkboxes

I have created a checklist that contains approx 60-70 steps. About 20 of them are to have a checkbox that fills an adjacent field with the date, and another with the user name. I have already got this functioning as a stand alone process.
aaa = checkbox
aaadate = field for date
aaaname = field for name
[code]
function test() {
var one = this.getField("aaa");
var two = this.getField("aaadate");
if (one.value == 'Yes') {
if (two.value == "") {
     this.getField("aaadate").value = util.printd("dd-mmm-yy",new Date());
     this.getField("aaaname").value = identity.name;
}} else if (one.value == 'Off') {
     this.getField("aaadate").value = "";
     this.getField("aaaname").value = "";
[/code]
I do not want to write a piece of code for each checkbox so I am trying to figure out how to use dynamic referencing so that when i check on a checkbox, the code takes the checked checkboxes' name (aaa) and is able to determine the two other fields name by appending/concatenating (name + "date"  = aaadate)
I have tried various methods and done tremendous research; I'm not sure if I lack the knowledge to incorporate what I've found properly, if I just have been looking in the wrong places for the wrong things. It seems like this should be possible in a PDF form...
Please help

You need to inject the part of the field name that changes as a variable. So your code would be something like this:
function test(base) {
    var one = this.getField(base);
    var two = this.getField(base+"date");
    if (one.value == 'Yes') {
        if (two.value == "") {
            this.getField(base+"date").value = util.printd("dd-mmm-yy",new Date());
            this.getField(base+"name").value = identity.name;
    } else if (one.value == 'Off') {
        this.getField(base+"date").value = "";
        this.getField(base+"name").value = "";
And you would call it like so:
test("aaa");
test("bbb");
etc.

Similar Messages

  • Using iPad2 to fill PDF forms with calculating cells

    I currently have the PDF Expert app. installed.  I have created a PDF form with calculating cells and cells with multiple selections using Adobe Acrobat X Pro.  It works on my PC on 2 different PDF reader apps, however when I load it in PDF Expert on the iPad it does not calculate and the multiple selections aren't there.  It also does not keep the formatting of the cell.  I set the cells up as currency, however it does not show as currency once loaded in the PDF Expert app on the iPad.  Is there an app out there for the iPad that will allow PDF form fill in and will also show the cell formatting and calculations? Or is this a limitation caused by iOS? I have also tried Adobe's reader app for the iPad and it doesn't show it on there as well.  Any help would be greatly appreciated! Thanks!

    I'd be amazed if you could. I wouldn't think it possible to even open a PDF, much less edit one.

  • Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Basically you would need Acrobat. However, it is now also possible to create basic form fields using just the free Reader. In fact, I've been working on a tool that allows you to do it, so if you're interested in it please contact me privately.

  • How to open a pdf form with fdf data

    Hi all,
          I am working on a new project. In that, I have to load a PDF contract form with FDF data on Internet Explorer Window.
    I don't know how to do it. Actually I tried using this format on the URL (while loading the respective page)
    http://www.example.org/pdf_file_name.pdf#FDF=http://www.example.org/fdf_file_name.fdf
    But it opened as an empty pdf document. . Actually I need it with the fdf data.
    Can anyone know any other way to do this?
    Or is this not possible to open a pdf form with fdf data in a browser?
    Thanks in advance
    Annamalai

    @ Bernd. It still opens a text file
    Here's my FDF file sample
    %FDF-1.2
    %âãÏÓ
    1 0 obj
    <<
    /FDF << /Fields
    <</V (07/22/2009)/T (Loan_Note_Date)>><</V (22.29)/T (Loan_AnnualPercentage_Rate)>></V ()/T (Seller_ESignatureArea1_Date)>><</V (GA Dealer)/T (Seller_Signer_FullNameTitle)>><</V ()/T (ThirdParty_ESignatureArea1_Date)>>
    /F (MARSMFLZ.pdf)/ID [ <1f0b6b55f345db39e8246247138fe562><e960588530b0d06d35cd618b34d4c314>
    ]>>
    >> endobj
    trailer
    <<
    /Root 1 0 R
    >>
    %%EOF
    (I have uploaded the related pdf file before.)
    Just now I got an idea to use WScript (the code is written in javascript)
    ws = new ActiveXObject("WScript.shell");
    ws.Run('"AcroRd32.exe" "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"', 1, true);
    this opens my fdf document in Acrobat reader using command prompt.
    I have a doubt now, can i use some string in place of "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf" in the above command?
    I mean something like fdf_file = "C:\\annukar\\Refi\\Refinance_Module\\Forms\\Contract.fdf"
    and replace ws.Run('"AcroRd32.exe" fdf_file,1,true). I tried it but it doesn't work Any idea's? Since the path will not remain the same always. So i need to change it

  • Populating a PDF form with database data

    I would love to know how (if possible) to populate an Adobe PDF form with data pulled from an Access database.
    Background
    I have a registration form already created using Adobe LiveCycle which is used by people to fill in their details.  With a built-in xml schema, the user saves the form and sends them to me.  I extract the data into an xml document which I can then import in an Access database using VBA code.
    The Need
    When it comes time to re-register, much of the original data provided by the user has not changed.  Rather than ask them to fill out the form all over again, I would like to send them their original data and they can update whichever fields they need to.  With the xml schema built into the form, I would love to turn this form into a two-way avenue for both importing and exporting data.  Is this possible?
    Any assistance in this matter would be greatly appreciated.  Please let me know if I have not provided enough information.
    Brett

    You can connect the form to the DB using anODBC connection. This functionality comes as part of Acrobat but the form must be Reader Extended by the full LiveCycle Server version of Reader Extension to allow this in Reader. In your case, if your system is the only on ethat will interact with the DB then this might be a viable solution (but you woudl have to use Acrobat). This solution woudl involve create an ODBC connection in your system then configuring the form to make use of that connection.
    Does that make sense?
    Paul

  • Dynamically populating a PDF form?

    I've created a form in InDesign that I use in my daily work -- it has several fields that hold information about issues I'm currently working on.  This information comes from a proprietary in-house system that I have access to via JDBC, SQL, language bindings, etc.  I would like to take my InDesign document, create a PDF form with it, and then have new PDFs automatically generated with the data provided by our own database.  I can handle 90% of this, but the Adobe end of it is confusing and (frankly) a bit frustrating.
    I can make a static PDF from InDesign just fine, but how can I create a PDF that is meant to be populated at a later time using external data?  I can put it any format - XML, CSV, whatever you want.  I just don't want to have to launch InDesign every time I want to print a new form.  Launching Acrobat would be fine, if not optimal -- at least in Acrobat I don't have to be careful not to mess up the source document.
    I would love it if Adobe provided a way (outside of LifeCycle - I don't have the money for that) to automate this entirely within CreativeCloud, but I am more than competent with outside programming environments if that's going to be required.
    Can anyone give me some direction with this?

    Irosenth,
    Thanks for the response.  I'm going with option 2.  For anyone finding this question in the future, here's the tutorial video to create an interactive PDF from InDesign:
    Create an interactive PDF | Adobe Creative Cloud tutorials

  • PDF form with buttons opens up URL with security warning window

    I have a short-lived process that renders PDF form with data merged. The data is in XML format. 
    The form buttons are assigned URL values when the form is opened. When I click on them,I get a Security warning prompting me to allow/block that site. When I click on 'Allow', I get a window of download statistics of the website that in the URL.
    This would be annoying to the end user. How I do I suppress the Security warning window as well as the download statistics window before the PDF is opened ? Can this be done either at the process design, form design stage or using Java APIs ?
    Thanks,
    Jyothi

    I have a short-lived process that renders PDF form with data merged. The data is in XML format. 
    The form buttons are assigned URL values when the form is opened. When I click on them,I get a Security warning prompting me to allow/block that site. When I click on 'Allow', I get a window of download statistics of the website that in the URL.
    This would be annoying to the end user. How I do I suppress the Security warning window as well as the download statistics window before the PDF is opened ? Can this be done either at the process design, form design stage or using Java APIs ?
    Thanks,
    Jyothi

  • PDF form with line printer

    Hi,
    Is there a way to use PDF form with line printer? how, and the pros & cons. Currently we are using SPF to develop pdf form in sap, however it has limitation to print on line printer that we need to print on 3 ply form. The only option is to convert all PDF form to sap script.
    If you have any ideas, please advise. Thanks.

    Hi courtneyp58664902,
    I would recommend you to follow the steps detailed on the page associated with this link (http://wwwimages.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-con vert-forms-into-fillable-pdf-c… ).
    I would recommend you to Save the pdf with reader rights enabled [ File -> 'Save as other' -> 'Reader extender PDF' ->  'Enable More tools ( includes form fill-in and save)' ].
    Please let me know if you face any challenges or need any further assistance.
    Regards,
    Rahul

  • Saving pdf form with extended Reader rights

    Hello,
    I want to save form changes without further confirmations in Reader version X ("Save" and not "Save as...").
    - If you use a pdf form with enabled Reader rights, you should be able to save any changes made in form field by using the Reader.
    - To save changes use "File / Safe" or press CRTL+S
    Result:
    - Save-as window will appear
    - After choosing save button you will be asked to overwrite existing file.
    Expected results:
    File should be saved without further confirmations! In Reader version 9 there was no problem with that.
    Does anybody had the same problem and found a solution?
    Regards,
    Christian

    OK, it seems to be a typical "it's-not-a-bug-it's-a-feature"-problem. But I found no way to avoid the overwrite question during saving. I noticed that the question appears only the first time when you click on the save button. If you do further changes in form fiels and click a second time on the save button the document will be overwritten without additional warnings. Maybe it's a feature to prevent users from overwriting empty forms by asking for a new filename and so on..
    However, we are using the reader in conjunction with a document management software and the overwrite warning disturbs our enterprise workflow. So the only insufficient solution for my problem is to downgrade all users to version 9 again.
    Hope next version of reader will be better in disabling unwanted features ;-)
    Regards, Christian

  • Perform as pdf form with the ability to insert pictures

    How to perform as pdf form. with the ability to insert pictures?

    You want your users to be able to insert images into a PDF form? That is only possible if they're either using Acrobat, or if they're using the latest version of Reader (XI) and the image is in PDF format.

  • Filling out a pdf form with preview

    I need to fill out some government forms which are of course in a pdf format and they want them typed.  Before i go looking for a typewriter at the antique store, isn't there a way to do it and print it retaining the forms format?  Preview will allow me to do about 3 lines and then stops allowing input.  I've tried the google crap and from there the apache odt crap.  Tried it on a PC too with growing frustration and zero accomplished.

    Preview will allow me to do about 3 lines and then stops allowing input.
    That is quite strange. I fill out pdf forms with Preview, and it allows me to put as much text in as I want. I wonder if the problem is something inherent in the particular form you are trying to annotate. You might try Skim ( Download Skim for Mac - PDF Reader and note-taker for scientific papers. MacUpdate.com ) which is an app I used to use to annotate pdfs until I discovered that that functionality was already present in Preview. I don't know if you can post that form here or elsewhere and I could try to annotate it with Preview.

  • Filling PDF Form with XML data file

    Hello everybody.
    I need help.
    I created a form with LiveCycle Designer. I filled it and generated a XML data files. Now, I would like to fill the same blank PDF form with this XML data file.
    I know that I can do it with Adobe 8.0 but I must do it in an C# / .NET application that I have to create.
    (Forms I'm creating are not for me, I create the forms. Client uses them form but he don't have Adobe Acrobat 8.0, so he can't realise the automatic PDF filling with Adobe Acrobat 8.0)
    So I am looking for help with ".NET" "COM" or other library to help me to do it. If someone has other idea just give it.
    Thanks for your reply
    Jean Pierre (sorry for my bad English)

    Hello Mike
    Thank's for your reply. I used XPAAJ and it works very well but my company his develloping software with C# langage.
    I tried to convert XPPAJ to C#, I did it with the Java Langage Conversion Assistant but "Adobe Library" included in jar files cannot be translated to C#/.NET library. So, I can't use it.
    I found some C#/.NET API on the NET but they are very expensive and my company don't want to pay. They want me to create my own solution with library given by Adobe when you buy Adobe 8. So I am looking for this library.
    Is there an Adobe LiveCycle Designer SDK to help me.
    Thank you in advance for your reply
    Jean Pierre (student developing with LiveCycle Designer)

  • I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    Chrome uses its own (incompatible) PDF viewer.
    Download the PDF to your local disk, then fill it from there with Adobe Reader.  Or use a browser that uses the Adobe PDF plugin.

  • Ann: 1-hr webinars (free): Better PDFs / PDF Forms (with FM-Acro TimeSavers/Assts)

    Wednesdays, starting 10am PT:
    * Better PDFs with FM-to-Acrobat TimeSavers, Nov 28
           Description/registration: https://attendee.gotowebinar.com/register/7685348030448593664
    * Creating PDF Forms with FM-to-Acrobat TimeSavers + Form Assistant, Dec 5
           Description/registration: https://attendee.gotowebinar.com/register/9161361026877549056
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/TCS training & consulting * FM-to-Acrobat TimeSavers/Assistants

    Because I know enough to be dangerous...  I was trying to extend the two outside columns down....  Instead of just using faux columns which I have fixed since I posted the question.
    The other link problem is the left sidebar links.  When you go to the event photos page I have a repeat of the sidebar links that are on the newsletter page.  I used named anchors on the newsletter page to link to the particular article.  From the Event Photos page the links look like this:
    <a href="1112Visions_Iss1.html/#puzzle" target="_self">[Puzzle]</a>
    The problem I am having is that some of these go to the newsletter page and the anchor and some do not (I get an error message saying it  can't find the page).  To add to the problem is that when we choose say the President's Message, when it goes to the newsletter page and the correct anchor, the newsletter page is missing all the links to the graphics... the photos are missing the graphic for the faux columns is missing.  It makes no sense.  When I preview the newsletter page from Dreamweaver everything shows up fine.
    I do not know if all of this is being caused because I haven't posted this stuff to the site or what.  I've tried re-booting both the browser and Dreamweaver, dumping the cache and still the same nonsense.
    Got any ideas?

  • 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)?

Maybe you are looking for

  • Report not showing expected result

    Hi Gurus, I am providing the screen shot of my flow. pls suggest how to debug. Regards Kharabela

  • Problems printing an InDesign document

    Hello I am trying to print an Indesign document with two layers - colour and text. Both layers are visible, but the colour layer won't print. Does anyone have and suggestions as to why this might be?

  • CIN: excise invoice J1IIN     URGENT

    While i am creating the excise invoice (J1IIN) following error is occuring. Error in allocating internal document number Interval not found Number object J_1IINTNUM And the document is not get saving. Sunil

  • Snapshot did not propagate changes to replicated table. kindly help

    Hi, Oracle 8.0.5 on windows server 2003. Objective:to replicate SALES table from Production DB to Backup DB. The steps I did are as follows: 1. create db links to and from Prod and backup DB. 2. create snapshot logs on SALES table on Prod DB 3. creat

  • Car kit CK-15W screen sometimes doesnt come on.......

    i hope someone can help me, i bought the Nokia CK-15W bluetooth car kit as an aftermarket add-on from a car dealer when i bought my new 2008 Volkswagen Jetta.....the dealership installed the unit to my car and within days of taking delivery of my car