URGENT - Can I predefine form fields dynamically??

Hello,
I am wondering if I can predefine forms (pdf-form-fields) by content coming from a database for example. So the user only needs to validate the information instead of writing it by himself before printing it for example. Can anyone help me please?
Thanks in advance,
M

Martin,
This is not appropriate for the Reader forum. I think it might be
possible if you used xml based pdf forms rather than what is known as
Acroforms/Acrobat forums. Please re-ask in the Acrobat LiveCycle
Designer forum:
Mike

Similar Messages

  • How to add form fields dynamically

    Hi
    I have a form with several fields, and in one section I have one check box and two text fields in a row and also have one button "Add more"
    when I click on the Add more button I need to create one more row with the above fields dynamically.
    how can I do it? Could some one suggest me with any code snippet?
    thanks,
    Suman K

    Use custom tags.
    Create all the new fields on the JSP page using custom tags ... i,e through Java code.

  • How can I add form field value to the file name in save as dialog box

    I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
    A little background on the forms I want to use:  My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example.  I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server.  We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box.  The main office employees will decide into which server file the pdf should be saved.
    I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
    One little note:  We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
    Me and a lot of trees in this will really apprecitate any help you can give with this!  :-)

    You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
    Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
    myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
         app.beginPriv();
              var myTrustedRetn = app.browseForDoc( oArgs );
         app.endPriv();
         return myTrustedRetn;
    myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
         app.beginPriv();
              var myTrustedRetn = doc.saveAs( oArgs );
         app.endPriv();
         return myTrustedRetn;
    The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
    Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
    var fileName = this.getField("Roller Coaster").valueAsString;
    try {
         var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
         try {
              myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
         catch(e) {
              console.println("Save not allowed, perhaps readonly.");
    catch(e) {
    console.println("User cancelled Save As dialog box");
    Good Luck!

  • Can't See Form Fields in Acrobat 9

    I created a form using the wizard. When I went in to create additional fields in the form field editor all the fields were gone and each field I added disappeared as well. My OS is 32 bit Windows 7 Pro. Everything is patched up to current levels. Someone told me they though this as a Windows accessibility setting my those must be for XP or something because the same settings don't exist in my version of Windows.
    I can't see forms in any document in the forms editor.
    Tom

    I concur with TSN. What I see is shown below:
    That looks reasonable. I assume this is also what TSN was seeing. The fonts are all normal Arial fonts. Even if you are on a MAC, I think the Arial would be replaced by Helvetica for viewing. 2 of the fonts are not embedded and you may not have the fonts on your system, explaining the viewing problem. The same is probably true for all the other PDFs you mentioned. You may want to see if you can add the Arial fonts to your system (again, we have no idea what that is).

  • 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.

  • Can't print "Form Fields Only" from newly-installed Acrobat Reader XI

    I have created numerous forms for our agency on which our employees used (in previous versions of Acrobat Reader) the "Form Fields Only" print function. We finally got the boss to give us the OK to upgrade to Acrobat XI Pro for me, and Acrobat Reader XI for the employees. However, they open the same forms we've been using and find that they no longer have the menu option to choose "Form Fields Only" for printing purposes. I would be very grateful to anyone who might be able to steer me in the right direction as to how I resolve this issue. Unfortunately, the job does not afford me a lot of time for research and "playing" with new software, and we need to have these forms work for us by Thursday. Help, please! And Merry Christmas to everyone!

    One possible workaround is to export the form data and then import it into a "blank" version of the same file, that has only the form fields. This would require using a script to export and import the data, and to create that additional version of the file for printing purposes.
    Or you can put the file's contents on a non-printable layer when creating it...

  • Can I make form fields highlighted by default?

    When the user opens the form, can the form fields be highlighted by default?
    Thanks.

    Normally you;d place the code in a  document-level JavaScript, outside of a function definition. To do  this, select: Advanced > Document Processing > Document  JavaScripts > Add
    - Yes, that's exactly what I did and pasted the code above into it, giving it a name.
    Delete the function skeleton that it provides by default and enter the code.
    - I didn't see any function skeleton, but a blank window.
    But  I want to make sure we're talking about the same thing. What I  suggested will highlight the active fields (e.g., not hidden and/or not  read-only) with a background color, which defaults to light blue. If  you're asking about a field border color, what you may be seeing are the  red borders of the fields that are marked as required, which is a  different matter. Can you clarify which you're asking about?
    - No, I don't see any red borders. Yes, I wanted to highlight the active fields with a background color. In the case of the code above, the color is "red" not blue so I expected to see a red background color. Won't the code above make the background color red? My forms open with a blue highlight by default (can't figure out why) so the only way I can check to see if it's working is to use a different color.

  • How can I clear Form Field?

    Hi Friends,
    I have created a new custom login named ZSYSTEM. It is a copy of the standard BSP Login Application SYSTEM. The ZSYSTEM uses the subclass  ZCL_BSP_LOGIN_APPLICATION of CL_BSP_LOGIN_APPLICATION.
    In the method IF_BSP_APPLICATION_EVENTS~ON_REQUEST I have wrote a new
    business logic for the login. The issues are the istructions:
      request->set_form_field( name = 'sap-user' value = '' ).
      request->set_form_field( name = 'sap-alias' value = '' ).
    They don't run. The fields 'sap-user' and  'sap-alias' aren't cleaned. I need clear the form field in case of user not authorised.
    I use the same custom Login BSP ZSYSTEM on NTW 7.3 and all run good.
    I read the notes 1513787 and 1421668.
    The SP level of SAP_BASIS  where issues happen is SAPKB70018.
    Do I need to install the SP SAPKB70022?
    Is there another possibility to clear the value of an form field?
    My code is as follow:
      DATA: lv_sapuser TYPE string,
            lv_sapalias TYPE string,
            lv_username_ret TYPE string.
      CLEAR: lv_username_ret, lv_sapuser, lv_sapalias.
      lv_sapuser = request->get_form_field( 'sap-user' ).
      lv_sapalias = request->get_form_field( 'sap-alias' ).
      TRANSLATE lv_sapuser TO UPPER CASE.
      TRANSLATE lv_sapalias TO UPPER CASE.
      IF NOT lv_sapuser IS INITIAL OR NOT lv_sapalias IS INITIAL.
        IF NOT lv_sapuser IS INITIAL.
          lv_username_ret = lv_sapuser.
          CALL FUNCTION 'Z_CHECK_LOGIN_ZGR1_CALL'
            DESTINATION 'APPREZZI'
            CHANGING
              iv_username = lv_username_ret.
        ENDIF.
        IF lv_username_ret IS INITIAL AND NOT lv_sapalias IS INITIAL.
          lv_username_ret = lv_sapalias.
          CALL FUNCTION 'Z_CHECK_LOGIN_ZGR1_CALL'
            DESTINATION 'APPREZZI'
            CHANGING
              iv_username = lv_username_ret.
        ENDIF.
      ENDIF.
      IF ( NOT lv_sapuser IS INITIAL OR NOT lv_sapalias IS INITIAL ) AND lv_username_ret IS INITIAL.
        request->set_form_field( name = 'sap-user' value = ' ' ).
        request->set_form_field( name = 'sap-alias' value = ' ' ).
      ENDIF.
        CALL METHOD super->if_bsp_application_events~on_request
          EXPORTING
            runtime    = runtime
            request    = request
            response   = response
            navigation = navigation.
    Regards,
    Antonio

    Hi,
    I guess you need to clear the attribute bsp_user
    and value
    as per code,
    sap-user is having value property set as value="<%= application->bsp_user%>".
    Here bsp_user is the attribute from claSS CL_BSP_LOGIN_APPLICATION.
    Please check same for sap-alias and clear the values accordingly.
    Thanks,
    Chandra
    Edited by: Chandrashekhar Mahajan on Oct 6, 2011 2:09 PM

  • Add form fields dynamically onchange of a select box.

    I have a JSP page with a <h:form>:
    <h:form id="registrationForm">
         <h:outputText value="#{Resource.EmailAddress}" /><br />
         <h:inputText label="E-mail Address" id="emailAddress" value="#{RegistrationBean.emailAddress}" required="true" requiredMessage="#{Resource.RequiredError}">
              <f:validator validatorId="EmailValidator" />
         </h:inputText><br />
         <h:message for="emailAddress" styleClass="error" /></td>
         Select age range<br />
         <h:selectOneMenu id="ageRange" value="#{RegistrationBean.ageRange}" valueChangeListener="#{RegistrationBean.updateComponents}" onchange="javascript: return submit()">
              <f:selectItems value="#{RegistrationBean.ageRangeValues}" />
         </h:selectOneMenu><br />
         <h:commandButton id="submit" value="#{Resource.Submit}" />
    </h:form>When the user changes the value for the ageRange select box, the form gets submitted through the following JavaScript:
    function submit() {
         document.forms[0].submit();
         return true;
    }Then the ValueChangeListener defined in a backing bean for the ageRange select box gets called:
    public void updateComponents(ValueChangeEvent e) {
         // Generate components automatically
    }What I want is, when the user changes the value of the ageRange select box, the valueChangeListener should generate a few new text fields in the form and the validator for the e-mail address field shouldn't get called. The validator for the email-address field should only get called once the user clicks on the Submit button.
    Any help or pointers will be greatly appreciated.

    You can find here lot of pointers: http://balusc.blogspot.com/2007/10/populate-child-menus.html

  • How can I PRINT forms´ fields?

    Hello!
    Does anyone know how to print those black field-names (descriptions of fields/block/array (?) in forms, for example: name_customer, adress_customer etc.) which appear in (standard)forms when you click this button which looks like a cursor-arrow from windows?
    I talk about these many black fields under the black arrows:
    http://img368.imageshack.us/img368/5605/adobequestionbo0.jpg
    Thanks a lot in advance
    Matt

    Matt,
    I think you did it in the best way, a screen capture. I can imagine why
    you want it, but it is not a feature. If you would like this feature in
    the future, just make a wish:
    Mike

  • Form Field Display Only

    Is there anyway within ADDT to specify a form field that is input on insert but display only on update? Marking the field read-only makes it so for both. I would like to let the user input the data, not be able to change it, but still see it for reference.

    If I understood correctly you want to allow the user to input data on insert but only be able to see the field value on update. You can make a form field available on insert/update/or both and have it display as text (so that the user can see if for reference but not be able to change it) by clicking on the Manage Dynamic Form wizard icon in the Developer Toolbox bar and changing the corresponding settings.
    <br />These options however don't cover your scenario as you want the field to be editable on insert only. I tried tweaking the generated ADDT code but it didn't work. The only other way to do this that I can think of would be to add the read-only attribute dynamically, that is on update only. The code to add to the field would simply be:
    <br /><%If Request.QueryString("ID") <> "" Then Response.Write("readonly='readonly'")%>. This code simply checks to see if a record ID is being passed to the dynamic form page and if it is then we know we're on an update page so the readonly field attribute is added (I code in VBScript so the code might be slightly different in your case).

  • How to change font in multiple form fields?

    I am creating a form - there are about 2 dozen form fields that are set up.
    I had Acrobat detect form fields.
    Is there a way I can select multiple form fields and change the font in all of them?
    I have tried selecting all the fields [cmd A] and double clicking to get to the appearance tab.
    The only changes the font in the 1 field I double click.
    thanks everyone!

    matthewmcneil wrote:
    I am creating a form - there are about 2 dozen form fields that are set up.
    I had Acrobat detect form fields.
    Is there a way I can select multiple form fields and change the font in all of them?
    I have tried selecting all the fields [cmd A] and double clicking to get to the appearance tab.
    The only changes the font in the 1 field I double click.
    thanks everyone!
    Select all the form fields , select first the hold shift key and select the rest Then right click or control click and choose properties. then look for "Fonts" choose desired font. If this works your all set otherwise you will have to choose each indivually and change.

  • Using comment tools in adobe form fields

    Is there any way to enable commenting tools so they work within pdf form fields?  I have created a pdf form, and as part of the review process (once the form is completed), other users need to be able to use commenting features on the text entered into the form fields (i.e. highlighting, strikethrough, etc.).  I haven't found any way to do this within the fields themselves.

    Acrobat can flatten all form fields / comments via Preflight (which lives in the Print Production tool pane) - select "single fixups" - the wrench icon - then type "flatten" in the search box to find the "Flatten all form fields" fixup, and run it.
    You can also flatten everything via the JS console. Press Ctrl-J to open the console, clear it with the trash icon, enter the command this.flattenPages() and press ENTER.
    If you want more control over what is flattened, we have a free add-on for Acrobat here.
    Note that you cannot flatten a Reader-extended document, so you must first use the File > Save a Copy menu item to de-extend your form.
    Once flattened it's no longer a form, so the field values become part of the page (and can receive annotation markup). However to allow markup in Reader, you will have to re-extend the PDF usage rights.

  • Test Fields Dynamically

    Hi,
    I want to test my form fields dynamically, so I did the following code:
    fields := 'F1,F2,F3';
    for i in ( my_split_function(fields, ',') ) loop
    it := Find_Item(i);
    +     if Id_Null(it) then+
    -- message field not found
    +               raise Form_Trigger_Failure;+
    +     else+
    +               -- test field...+
    +     end if;+
    end loop;
    The problem is that I don´t know how to get the value of the current item.
    Does anyone know how to get the value of a Item Type variable?
    thanks.
    Mário Cardia

    I am not what is the logic in ur WVT but if you don't it to validate during your processing.
    Use SET_FORM_PROPERTY to suppress it for sometime
    e.g.
    else
    set_form_property('Formname',VALIDATION,PROPERTY_FALSE);
    go_item(id);
    --processing
    end if;
    set_form_property('Formname',VALIDATION,PROPERTY_TRUE);-knick

  • CC 2014 Palette Form Fields Not Recognized with Dual Monitors

    When I'm using a dual monitor setup, my second palette monitor (usually my MBP) can render palette form fields unclickable. For example, if I want to click into the form field to change the stroke size, my pointer clicks straight through to the finder as if the palette wasn't there. However, I'm still able to grab the top of the palette and move it to the main monitor. When I do this, the palette works fine, moving it back recreates the issue. This problem is intermittent, but has happened a handful of times in the last month.
    So far I've experienced this with Illustrator CC and CC 2014 as well as Photoshop CC 2014.
    My current setup is a 2013 2.6 GHz MBP with 10.9.4 and the most recent versions of CC and CC 2014.
    Any ideas?

    oh,  forgot to say Mavericks   10.9.5    running on the mac pro..

Maybe you are looking for