How do I retain a PDF form widget's design when setting its value using Javacript in Acrobat?

I've been experimenting with interactive PDF forms in InDesign and JS in Acrobat. I think I've encountered something that might be a bug: widget design is overriden when using Javascript to set the field's value in Acrobat. Here's what a checkbox, for example, should look like when checked:
However performing:
var f = this.getField("Checkbox");
f.value = "Yes";
in the JS Console results in the widget's appearance defaulting to acrobat's:
I've tried every single widget property documented in Acrobat's Javascript API Reference to no avail. Initially, checking/unchecking using the mouse works fine. Once the value has been set using JS, Acrobat's default black check character is used for all subsequent toggling, including when using the mouse...
How does InDesign export interactive PDFs with custom icons for widgets? Is there any way to enforce the use of those icons using JS in Acrobat Pro? What's the difference between selecting a checkbox or a radio button using the mouse and setting its value using JS?

I thought it might be the case, too, but all widgets have the same properties both before and after setting the value with JS. I did this check using all documented properties in Acrobat JS Reference in an attempt to figure out what might be going on.
By the way, I don't think Indesign necessarily uses glyphs for the checked state of widgets, although in this case a glyph is used (albeit with different stroke and fill colours for the glyph, acrobat doesn't allow setting these properties AFAIK). With Indesign CS6 it seems you can practically use any Indesign tool to design the widget's On and Off states. So I'm thinking that maybe Indesign exports these with button-like properties where there are no restrictions on appearance (I think there is an "icon" property/object for buttons or something like that). However Acrobat treats them as checkboxes, so if that is the case it is more of a hack. Is there a way to probe an object's various properties other than using JS or the properties pop-up dialog?

Similar Messages

  • I have Adobe Creative Cloud.  How do I edit a PDF form I created at work and e-mailed to my home tablet?

    I have Adobe Creative Cloud.  How do I edit a PDF form I created at work and e-mailed to my home tablet?

    Hi Val,
    I see! Please see this thread: Is FormsCentral part of the Creative Cloud?
    Creative Cloud doesn't include FormsCentral, which is why you're being prompted to upgrade. (An Acrobat Pro subscription, on the other hand, does include FormsCentral.)
    Best,
    Sara

  • How do I create a Pdf form for others?

    I have finally figured out how to make a pdf form, but my client wants to be able to attach the file to his e-mail and send it to his relations.
    How do I create a pdf form with his adress in stead of my own e-mailaccount?
    Tried to adjust my id in the preferences on my Mac, but that is not a safe way I guess...
    Can anybody help me out, I'm stuck...
    Bob

    Yes, I want to enable the client's relations to be able to click on a link
    in the pdf to automatically submit the pdf to his e-mail address.
    Now a purple bar shows up when a 'relation' opens the pdf form.
    In this bar is a button included for sending the form, but they have to
    confirm the adding of their reaction to the 'reactions-file'. This refers to
    the location where I authenticallly saved the file (on my hard disk).
    I can adjust the reply e-mail adress by temporarily adjusting my id in
    Acrobat preferences, but I don't know the future location of the reaction
    file.
    It's a difficult question, but it's based on the question: Is it possible to
    make a pdf form for somebody else; so they can send en receive the reactions
    on their moment and their wanted location?
    Op 02-04-10 04:32, carltondaniel <[email protected]> schreef:
    hi bob
    are you saying the email address is on the pdf as plain text? or are you
    wanting to enable the client's ³relations² to be able to click on a link in
    the pdf to automatically submit the pdf to his email address?
    daniel
    >

  • How do I put a PDF form onto my website?

    New to Acrobat. Just bought 8 Pro for Mac version. How do I embed a PDF form onto my website?
    Also, if the process to do this is hard, would upgrading to version 9 make it any easier? Thanks.

    It depends on how the user's system is set up. Normally, the PDF will open in the browser, not just downloaded.
    It is possible to embed a PDF in an HTML page, for example: http://blogs.adobe.com/pdfdevjunkie/2007/08/using_the_html_embed_tag_to_di.html
    But note that not all users will have a PDF viewer installed, and not all PDF viewers are produced by Adobe, so this will not work for everyone. The above link cause my Firefox browser to crash, but it works with my Internet Explorer browser.
    George

  • How do I distribute a PDF form to an outlook contact group?

    How do I distribute a PDF form to an outlook contact group?

    I've had better luck converting my PDF forms to WORD documents by first printing to PDF so that I get a "non-form" PDF then saving as try67 noted.  The conversion came out much cleaner.  In my case it i for folks that need to make edits to the format or data submitted to us via PDF form - the type of edits that would be challenging if done to a PDF.

  • How to tag a Print PDF form ?

    Hi,
    I need some pointers on how to tag a print PDF form. For one of the requirements, we developed a Print PDF form. The form contains Sub-forms which are made to look like a table. The relevant parameter(i.e., pdf_tagged ) is already set before starting the Job. The special case here is that the table gets the text for the header from the application data and shrinks or grows(upto a max supported column count) according to application data. For the same reason we cannot have a table, header row and body row marked in the accessibility tab in the form development transaction. Also, it is required that a header has to be visible.
    So currently in the form :
    1)We have just a set of sub-forms made to look like a table.
    2)We do not have any table,header or body row identified in the accesibility tab.
    3)Table also grows and shrinks horizontally.
    4)First row of the table is made to look like a Header row(bold text) and gets the data from the application data.
    5)This PDF is then displayed in a popup.
    6)The PDF form is currently not tagged (not accessible).
    Any pointers on how to resolve the issue would be highly appreciated.
    Best regards,
    Abhay

    Look in the Help section under Forms.

  • Pls tell me how I can convert a PDF form to a Word doc, and have radio buttons etc work?

    Pls tell me how I can convert a PDF form to a Word doc, and have radio buttons etc work?  My PDF form did convert using Adobe PDF Export.... but the formatting is a schamozzle if I try to do anything with it.  Most importantly, I need the check boxes and radio buttons to work in Word!

    Checkboxes and radio buttons are form objects from Acrobat.  There is no equivalent for these objects, with the way they were constructed, within Word.
    I'm sorry for the inconvenience.
    David

  • How can I fill a pdf form?

    how can I fill a pdf form?

    With Adobe Reader.  If you have any difficulties, please provide some details.

  • How can I make a detailed form widget into TWO columns?

    how can I make a detailed form widget into TWO columns? I have a contact form with a lot of fields.

    Hi Whatsmyjam9999,
    You can place a blank composition widget then click tigger 1, click inside target 1 and from menu--> files--> place the image and adjust it's dimensions, you can repeat the same steps for trigger 2 and 3
    Here is a video link http://ghai2.worldsecuresystems.com/jing/2013-07-22_1442.swf

  • How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    How do I save a PDF as an excel file when the PDF is horizontal. Adobe tries to rotate the page, but the data is entered in an  horizontal format.

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • Texts in pdf form don't appear when viewing in Acrobat nor in Reader.

    Texts in pdf form don't appear when viewing in Acrobat nor in Reader nor when printed after the form has been filled. But the texts appear when one clicks inside the field. What is the solution to be able to print and view all of the texts in all of the fields that have been typed.

    More than likely caused by someone filling out the form with Mac Preview.
    Here's a potential fix: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

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

  • A pdf form I have designed cannot be exported due to an "unexpected error". What can I do?

    When I try to save a particular pdf form I have designed I get a message that it cannot be exported due to an unexpected error. I have not had this problem with other forms I have created. What can I do?

    Yes, Forms Central. I made the form by using a blank form page, copying and pasting another form I had done previously to the blank page and then modifying it.
    The original form I had copied from as the basis for the new form saved as a pdf form perfectly: the copied and then modified version kept displaying the error message.
    In the end I have managed to work around this problem by opening another template form (the Assessment one) and spending forever copying the items from the form i couldn't export over to the " template form one at a time (after deleting the template items, naturally).
    I will be making other forms that will have versions with minor variations and it would be much easier if I could copy and paste a whole form at a time rather than cell by cell but is that going to make the copied forms impossible to export from FormsCentral as it did with this one?

  • How can I get a PDF form to email to me when it is hosted online?

    Ok, I'm not a coding expert, but I understand CSS and html alright.
    I am trying to create a PDF form for my website: www.pantherapressdesign.com.
    I have already created the forms (they are under the purchase section of the site) and when they are saved to the harddrive they work just fine. HOWEVER, when you fill them out and they open in the browser they will not submit to me (aka. I don't get them by email, even though the submit button correctly re-directs you to the thanks page).
    In the fuctions of the submit button I have it set to mailto:[email protected]
    When the form is saved on the hard drive (I open it from the desktop) and click submit it brings up a dialog box and asks me how I want to send it. I then choose desktop mail service, it opens it in an email and sends it.
    I want customers to be able to click the form from the website - fill it out right there in the browser - and then be able to submit it to me that way.
    I am assuming I must route this through the php or something, but am not sure how to do that. I have the php working for the contact from on the website, but I don't know php so I used pre-written code to do that. Is there some simple code I can drop into my php that will handle these forms? Help, please! Thanks

    I looked at the Stationary form, and there are a number of things you need to change. It is currently set up to submit as "HTML", as opposed to FDF, XFDF, or the entire PDF. This is fine if you're submitting the form to a web server, which can read the field data, place it in an email, and send it off. This is actually much preferred to relying on the user's machine being set up properly to send an email. Many are not and not receiving order that someone thought was submitted will be bad for your business. Consider removing the existing forms today and you can update when they are working.
    Your web hosting service likely has a PHP script that is designed to work with HTML forms and send an email with the form data included. This can work with a PDF form if the form is correctly set up. To do that, you will need to know how the script works and what it is expecting in the way of form data when it processes a submission. The PHP script should also be modified to send an appropriate response back to the user, which can be a simple redirect. The way you have it now with a link to the redirect page is wrong. It goes there whether the form is complete or not and whether the email actually got sent. This can be avoided by having the web server take care of this.
    If you don't have the expertise to modify the form to suit the PHP script and PHP script to suit the workflow, you'll need to find someone who does.

  • How to create a multiple PDF-form outputs into one PDF?

    Hi,
    I`d like to create a PDF document with a few pages in it, build from different PDF-forms using many form-function calls. Where each PDF-form can use its own interface.
    I`ve made a simple programme, but as the result I have a few separated documents with scrolling tab instead of one document with all pages in it.
    What am I doing wrong?
    *& Report  ZZ_TEST_PDF_MULTY
    REPORT  zz_test_pdf_multy.
    PARAMETERS:
      p_page TYPE i DEFAULT 2,
      p_row TYPE i DEFAULT 4.
    END-OF-SELECTION.
      DATA:
        tb_itf TYPE tsftext,
        s_itf TYPE tline.
      DATA:
        c_fmname TYPE rs38l_fnam,
        s_outputparams TYPE sfpoutputparams,
        s_docparams TYPE sfpdocparams,
        s_formoutput TYPE fpformoutput,
        s_sfpjoboutput TYPE sfpjoboutput,
        c_page TYPE string,
        c_row TYPE string.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'FP_TEST_00'
        IMPORTING
          e_funcname = c_fmname.
      s_outputparams-nodialog = 'X'.
      s_outputparams-device   = 'PRINTER'.
      s_outputparams-preview  = 'X'.
      s_outputparams-dest     = 'PDF'.
      s_outputparams-getpdf   = ' '.
      s_outputparams-title    = sy-title.
    *  s_outputparams-bumode   = 'M'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = s_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      s_docparams-langu   = 'R'.
      s_docparams-country = 'RU'.
      DO p_page TIMES.
        MOVE sy-index TO c_page.
        REFRESH tb_itf.
        DO p_row TIMES.
          MOVE sy-index TO c_row.
          c_row = sy-index.
          CONCATENATE
              'page' c_page 'row' c_row
            INTO s_itf-tdline SEPARATED BY space.
          APPEND s_itf TO tb_itf.
        ENDDO.
        CALL FUNCTION c_fmname
          EXPORTING
            /1bcdwb/docparams  = s_docparams
            textlines          = tb_itf
          IMPORTING
            /1bcdwb/formoutput = s_formoutput
          EXCEPTIONS
            usage_error        = 1
            system_error       = 2
            internal_error     = 3.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDDO.
      CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = s_sfpjoboutput
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

    Sorry, but making single PDF from many smartforms is not what I want to achieve. I wold like to know how to get one PDF document made by ALC-forms.
    In my example I have many PDF documents. So, how to get (or put) them all in one PDF?
    ps: the way to get one PDF from smartforms is also here:
    "Combining Multiple Smartform Outputs Into One PDF file"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450

Maybe you are looking for

  • How do I load balance TFTP between two servers and a client on the same subnet?

    Hi, I have trawled through several documents and tried umpteen different configs, all to no avail. I have a PXE boot client trying to access a boot file via TFTP from a couple of TFTP servers on the same VLAN/subnet. For HA purposes I want to load ba

  • Camera View Help

    I am trying to animate some text, and have somehow managed to change the default camera view.  In all of the tutorials that I see, people drag the camera around and the text moves, but when I drag the camera around, I get a red box and a larger green

  • JTree update problem

    Hi, I have created a JTree using the vector constructor. The hierachy is a teamList(Vector) -> team(Vector) -> players(Object). I put the teamList into the JTree construcotr. At various points in the program the user can add teams to the team list, o

  • Query with level

    Hi, I've this table: CREATE TABLE TAB_LEVEL COD VARCHAR2(255 BYTE), COD_DESCR VARCHAR2(255 BYTE), COD_LEVEL VARCHAR2(255 BYTE), COD_FATHER VARCHAR2(255 BYTE) with data: Insert into TAB_LEVEL (COD, COD_DESCR, COD_LEVEL, COD_FATHER) Values ('50000135',

  • CRM 2007 MClient Authorizations

    Hello All - I  am new to CRM 2007 Mobile Client  tech. I am looking for your help in authorization's with respect to MC Thanks in advance. VJ Edited by: sapsec vj on May 25, 2008 11:30 AM