Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6149729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:30:10+00:00 2026-05-23T19:30:10+00:00

In case of multiple fields with same name iTextSharp acroFields.SetField(Name, Value) sets value for

  • 0

In case of multiple fields with same name iTextSharp acroFields.SetField(Name, Value) sets value for first field only. How to set the value for the rest of the fields? When looping thru the acroFields.Fields the field names are reported as

form1[0].#subform[0].TextField1[0] - TextField
form1[0].#subform[0].TextField2[0] - TextField
form1[0].#subform[0].TextField2[1] - TextField
form1[0].#subform[0].TextField2[2] - TextField

When using

acroFields.SetField("TextField1", Value);

the value of text field named as TextField1 is set. there is only one field named as TextField1 so it is fine. However when using

acroFields.SetField("TextField2", Value);

the value of first text field named as TextField2 is set. The rest two fields named as TextField2 are left unset.

The PDF is created with Adobe LiveCycle and saved as Static PDF i.e. it is not Dynamic XFA.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:30:10+00:00Added an answer on May 23, 2026 at 7:30 pm

    Can you just use the full field name?

    acroFields.SetField("form1[0].#subform[0].TextField2[0]", Value);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to fall through multiple case statements without stating case value:
In a database prototype, I have a set of fields (like name, description, status)
Using IBM Informix Dynamic Server Version 10.00.FC9 I'm looking to set multiple field values
We have a business case that would be perfect for multiple BackgroundWorkers. As an
My application uses multiple windows I want to hide one specific window in case
I'm using the following code to take the value of one field, subtract it
The issue I'm currently having is mapping multiple GUI fields to object properties (i.e.
I'm trying to remote validate a field by looking at two different fields. The
I want to be able to create multiple user accounts with the same login
I have many cursors that all return rows with the same fields: a numeric

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.