Modify form field properties

This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7df8.w.h tml

This is not easily scripted as yo need to provide the exact date pattern you want to use.
You can run the following script through your JavaScript console in Acrobat,. You will need to modify the field names and date format as needed to meet your needs.
// define an array of fields to change
var aFields = new Array("Text1", "Text2", "Text3", "Textn");
// define a character string for the date format
var cDateFormat = "dd-mmm-yyyy";
// define a field object to be used for setting the date format
var oField;
// loop through the field names and add the date format
for(i = 0; i < aFields.length; i++) {
// get the field object for i element in aFields
oField = this.getField(aFields[i]);
// set the date format
oField.setAction("Format", AFDate_FormatEx( cDateFormat));
// end loop field names - get next field name for processing
The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript)
There are other tools and methods to make forms besides the form Wizard. Most of us avoid it for most forms.

Similar Messages

  • Actions tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WSDFC888F9-219C-4b55-90E6-D316E2A85F08.w.htm l

    I am working in Acrobat. I trying to create a form dealers will complete and submit. There will be no licensing issues. I have created a button and named it SUBMIT. In the Actions tab I have selected “Submit a form.” I have entered “mailto:[email protected]” under “Enter a URL for this link”. I have also selected “PDF The complete document” as the Export Format.
    I saved the file but when I go to the Preview Mode and click the new “Submit” button, I am asked to “Save PDF as” from a menu. Even if I rename the file and click save, nothing happens. I am back in the Preview mode. If I click “Submit” again, I get the same “Save PDF as” routine.
    I am baffled.
      Lloyd Doolittle
    Re:  Actions tab for form field properties
    [Personal information deleted]

  • Creating a modifiable form field

    Hi,
    I would like to create a modifiable form field that maps onto a directory server multi-valued field. This field should have the ability to add a value or remove a value as well as displaying the contents of the list. I've spent time reviewing the Workflows, Forms and Views (v8) document but it's not clear how to achieve this sort of field. Is it possible?
    Regds
    CK

    The ListEditor component is what you are looking for.
    Check out this code snippet directly from the documentation:
    <Field name='accounts[Sim1].Group'>
      <Display class='ListEditor' action='true'>
        <Property name='listTitle' value='stuff'/>
        <Property name='allowTextEntry'>
          <Boolean>true</Boolean>
        </Property>
        <Property name='ordered'>
          <Boolean>true</Boolean>
        </Property>
      </Display>
      <Expansion>
         <ref>accounts[Sim1].Group</ref>
      </Expansion>
    </Field>The important stuff in this case is the field name, in this case accounts[Sim1].Group. This means you are displaying/modifying the contents of an attribute "Group" on resource "Sim1". Change this to suit your needs.

  • Modify form field value

    I have the PDF form with several fields. I want to set the value of one field depending on selection made by the user in other field. I am trying to use if statement but it does not work for me. I have copied below the script I am trying to use.
    form1.#pageSet[0].Page1.Table.Table3[0].Row1.Cell1::change - (JavaScript, client)
    if (oField.rawValue == "Service Alert")
       this.resolveNode("Cell4").rawValue = "A";
    else if (oField.rawValue == "Service Bulletin")
       this.resolveNode("Cell4").rawValue = "B";
    When user selects Service Alert in Cell1 I want the value of Cell4 to be set to A and if Service Bulletin is selected I want the value of Cell4 to be set to B.
    Can someone help me with the script. I have done a bit of searching and tested verious syntax but nothing did work. I hope someone will help me to have it working.
    Regards,
    Tony

    Thank you very much for your help, but it did not work for me. I have decided to reply and to send you the form. Could you please have a look on what I have done and try to fix it. I want to add action to Cell1 to modify Cell4 in row 1 of the form, top on the blue background.
    Regards,
    Tony Pluta
    Engineering Technical Coordinator / Graphics Designer, Engineering
    Rail
    Description: C:\Users\tony.pluta\AppData\Roaming\Microsoft\Signatures\UGLLimited.gif
    16 Broadmeadow Rd | Broadmeadow NSW 2292 | Australia
    Direct: +61 2 9492 1277  | Mobile: +61 403 399 167
    Fax: +61 2 9462 1383
    Email: [email protected]
    Web: www.ugllimited.com<http://www.ugllimited.com/>
    Please consider our environment footprint before printing this e-mail
    From: kvdvijaykumar [email protected]
    Sent: Wednesday, 29 May 2013 4:14 PM
    To: Tony Pluta
    Subject: modify form field value
    Re: modify form field value
    created by kvdvijaykumar<http://forums.adobe.com/people/kvdvijaykumar> in LiveCycle Designer - View the full discussion<http://forums.adobe.com/message/5360639#5360639

  • Can't set form field properties

    I'm using Acrobat Pro 9.3.1 on a Macbook Pro running Lion. When I create a form field, I can't set the properties of the field. Sometimes I get a "Bad Parameter" error message, and sometimes it just crashes the whole program. I've tried starting from a brand new, blank document right in Acrobat and get the same result when trying to set the field's properties.
    However, when I use a different computer running OS X 10.6 and Acrobat Pro 8.3.0 it works just fine.
    Any thoughts?

    Ok, previously I was trying to do the update from within Acrobat. This time I downloaded the file and it opened a dialogue box telling me, "Please choose the copy of Adobe Acrobat Pro to update." But when I get there, I can't select it. See the screenshot.

  • Acrobat 9.0 Changing Form Field Properties

    When working with Form Fields in Acrobbat 9.0, how can I quickly and easily change a Text Field to a Check Box field without having to delete and then add in the new field?  I thought right-clicking would do the trick, but it doesn't give me the option to change from a Text field to a Check Box field or vice versa.

    Cannot be done. Its like asking how to change a chicken into a duck, they are both fowl but...

  • Form Field Properties, "select all option"

    A form with multiple field types such as text and check marks, having the ability to select all of a specific field type to make a properties change like "format" is very useful.  In Acrobat 8, a document with say, 50 fields of text, and 20 fields of checks, you could select all checks or text fields to make a properties change without limitations. Please quit removing useful functions.

    I guess you were using the specific Field Tool to access the common properties of specific field types. The Field tools have been abandoned (except for the Button Tool) in favor of the Form Edit Mode. (what I think of that is obvious knowing that my main tool for forms development is Acrobat 7… testing in 9 and 10 is OK, however).
    So, you might still be able to access the common properties of specific field types by switching to the Form Edit Mode and selecting the according Field tool there. A kludge, works against the hands, and may have unwanted side effects, but a possibility.
    It is a shame that we must beg in feature requests for fixing bugs…
    Max Wyss.

  • Options tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WS5DD4FA5D-7906-4fdd-AC89-AE702D8C9BDB.w.htm l

    Yes, the new method of setting the tab order really sucks, but Acrobat 11 has some changes that help. It allows you to move more than one field at a time and also allows you to disable a "feauture" that causes the tab order to automatically reorder itself when you simply move fields. I still keep Acrobat 7 around just so I can use its better tab-order setting method.
    Here is a script that you can run from the interactive JavaScript console (Ctrl+J), the mouse up event of a temporary button, etc., that will set the font for all of the text fields in the form at once:
    // Loop through all of the fields in this document
    for (var i = 0; i < numFields; i++) {
        var fName = getNthFieldName(i);
        var f = getField(fName);
        // Set some properties of text fields
        if (f.type === "text") {
            f.textFont = font.Times;
            f.textSize = 9;
            // Other properties go here
    Here is a link to the documentation so you can see what to use for the textFont property for the built-in fonts: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.727.html
    Let me know if you're using a different one and I can show you how to get the name of the font.

  • Calculate tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/X/pro/using/WS4516ED9A-07B3-46c7-B547-E083678A2D44.w.h tml

    I have a simple calculating field using Adobe Acrobat 10.1.5.  I am multiplying one field by another.  I have double checked the spelling of the field names.  It calculates but when changes are made to the source fields, the calculated field does not automatically change until I go to that field in user input mode and delete the existing entry.  The calculated field will then change to the correct amount.  I have locked the field.  Other calculated fields on the form do not behave this way.  Any help is greatly appreciated!!!!

  • General tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/X/pro/using/WS75136AD2-894B-414e-B296-C590121A789B.w.h tml

    Not possible. The tooltip functionality gets turned off when the field is
    set as read-only.
    On Wed, Jan 16, 2013 at 11:28 AM, Robin Chaudhary

  • PDF form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/using/WSC9CAD508-1941-43db-B599-2DCBF7BFC055.w.html

    Right-clicking and choosing "Use Current Properties As New Defaults" does not change the default font, at least not while using Acrobat XI on Windows 8.

  • Format tab for form field properties

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7de4.w.h tml

    It is possible to add script to a PDF to perform keystroke, formatting, and validation using the RegExp object. One can even have multiple variations and optional separator characters, It is even possible to include the testing of check digits. For 10 and 13 digit IBSNs see Default Spacing.

  • Form fields remain interactive after form is saved

    I have built a number of forms by importing static pdf's in to Live Cycle and applying the form fields and scripts there. Now I am finding that if I save the form and then go to Acrobat XI to enable the form so that Adobe Reader users can fill it out, then when they do fill out the form and save it the result still has all of the interactive form fields of the original form.
    The objective would be that the user opens the interactive pdf, fills it out, hits a Save As button, and the form will save as a static copy with their information in it and the original interactive pdf will remain and can be closed without saving their personal data.
    I do have the option of forcing the user to print instead of save, but the user is then prompted if they want to save changes when they finish printing and go to close the original.
    This was not an issue previously, so I would like to know exactly what I am missing in this very basic step.

    Hi;
    All of the fields in the downloaded "response PDF" are marked "Read Only".  You can change this using Acrobat by editing the form and unchecking the "Read Only" box in the form field Properties dialog box.
    Thanks,
    Josh

  • After someone responds to a form can the form fields remain active?

    I have created a form in Acrobat Pro and uploaded it to Forms Central and distributed it.  When I download the response in PDF the form fields are not active. is it possible to keep the fields active and if so, how do you make that happen?

    Hi;
    All of the fields in the downloaded "response PDF" are marked "Read Only".  You can change this using Acrobat by editing the form and unchecking the "Read Only" box in the form field Properties dialog box.
    Thanks,
    Josh

  • Is there any api to modify the form field in PDF?

    Hi,
    Our client need we provide the editable PDF, i.e. some form fields in the PDF report can be edit. Now we created the PDF template and merged it with the XML data definition in Jdeveloper, but when we get the final PDF report, we found that the PDF form field property is changed to "Read-Only" automatically. We make sure that in PDF template the form field is not "Read-Only", something happened when we merging the XML data and the PDF template.
    Now we wonder if there is any API can help us to modify the PDF form field property, after we merge the XML data and PDF template, we can use it to change the form fields to editable, not "Read-Only".

    Hi,
    What I need is to modify some form fields' property, I explore some web and found before I create the PDF file, I can set the security of the PDF:
    Properties prop = new Properties();
    prop.put("pdf-security","true");
    prop.put("pdf-open-password","welcome");
    So I wonder if there is one property related to the PDF form field.
    Thank you.

Maybe you are looking for

  • Lollipop issues on my ZR?

    1) the LED strip is not working in album app 2) walkman app not changing background colour according to lollipop and the led strip glows in violet Any solution?? Tried: formatted, fresh install, turned off stamina mode.. Solved! Go to Solution.

  • Re activating script after stop();

    How do I stop a script from running, or remove it from a swf at a specific frame, (on its own layer "actions") and then start it again, or script it again on another frame further down the timeline? If I try and put the same script on another layer,

  • Australia Payroll - Pre DME error

    Hi, While running the Pre DME for Australia (pc00_m13_cdta) i am getting the following error :- 'No entry in table for key: T012K <company code>ANZ 010'. I have maintained  the house banks and accout ids and have also maintained the DTAKT feature. Pl

  • Blank ACL required?

    Hi, I have had a guest VLAN running for a few weeks and today after a scheduled reload of our systems we had a wireless problem. Our configuration has clients authentication on the WLC web portal, and then have access to Internet only. This access is

  • Australian Nationalities in Infotype 0002

    Does anyone know what the definition is of the following Nationalities for Australia? Is this a requirement for reporting in Australia? (from Infotype 0002)? Thanks. Australian AU, Australian CC, Australian CX,