Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. What value goes for "Other" field type in PDF Form field types?

What value goes for "Other" field type in PDF Form field types?

Scheduled Pinned Locked Moved ASP.NET
helpcomtutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meeram39
    wrote on last edited by
    #1

    I am trying to generate a PDF using iTextSharp. It's a fillable PDF. I am able to track all the fields except for some check boxes. All of those checkboxes are Yes/No checkboxes. Now, the issue is, for some fields, the field type is coming as 'Other'. I am not sure what value should go in to these types.I am following the example in Filling PDF Forms I am getting the fieldtypes for some fields as follows: Track - Other Gender - Other Spouse Gender - Other if Yes, please provide the following_2 - Other The first part is the formField name, and the second part is the type. Since, it is Other type, these fields are not detectable. Please help.

    J 1 Reply Last reply
    0
    • M meeram39

      I am trying to generate a PDF using iTextSharp. It's a fillable PDF. I am able to track all the fields except for some check boxes. All of those checkboxes are Yes/No checkboxes. Now, the issue is, for some fields, the field type is coming as 'Other'. I am not sure what value should go in to these types.I am following the example in Filling PDF Forms I am getting the fieldtypes for some fields as follows: Track - Other Gender - Other Spouse Gender - Other if Yes, please provide the following_2 - Other The first part is the formField name, and the second part is the type. Since, it is Other type, these fields are not detectable. Please help.

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      I'm just guessing but usually other means a textbox that you write in your answer. So you have a checkbox other, and when you click on it, a textbox appears or something. So its still a checkbox, only the text or id assignment is "chk_gender_other" or something.

      M 1 Reply Last reply
      0
      • J jkirkerx

        I'm just guessing but usually other means a textbox that you write in your answer. So you have a checkbox other, and when you click on it, a textbox appears or something. So its still a checkbox, only the text or id assignment is "chk_gender_other" or something.

        M Offline
        M Offline
        meeram39
        wrote on last edited by
        #3

        Correct. I have two Sections called Gender and Spouse and then each section is having two checkboxes , Male and Female. The problem is, I am getting the id for the checkbox as

        formFieldMap["Gender"]= ?
        formFieldMap["SpouseGender"] = ?

        How and what value should I pass to differentiate Male and Female Checkbox? I believe that I need to edit the PDF again to make the Id's unique.

        J 1 Reply Last reply
        0
        • M meeram39

          Correct. I have two Sections called Gender and Spouse and then each section is having two checkboxes , Male and Female. The problem is, I am getting the id for the checkbox as

          formFieldMap["Gender"]= ?
          formFieldMap["SpouseGender"] = ?

          How and what value should I pass to differentiate Male and Female Checkbox? I believe that I need to edit the PDF again to make the Id's unique.

          J Offline
          J Offline
          jkirkerx
          wrote on last edited by
          #4

          Ah yes the naming formula Took me about 10 years to get good at it. i would of named it cb_form_gender_male cb_form_gender_female cb_form_gender_other txt_form_gender_other cb is for checkbox form is the name of the section, document, or something. You should get the idea

          M 1 Reply Last reply
          0
          • J jkirkerx

            Ah yes the naming formula Took me about 10 years to get good at it. i would of named it cb_form_gender_male cb_form_gender_female cb_form_gender_other txt_form_gender_other cb is for checkbox form is the name of the section, document, or something. You should get the idea

            M Offline
            M Offline
            meeram39
            wrote on last edited by
            #5

            Thank you. I changed the naming formula, it's coming properly now.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups