Sample form is in the attachment. It is in Dutch. There's a checkbox
"ParticulierOfOndernemer" with states ("Particulier","Ondernemer"). When
state is set to "Particulier" textfield "BSNnummer" should be filled,
otherwise textfield "BTWnummer".

As I said, the value I assigned to BTWnummer is saved with the form, but
when you open it using Adobe Reader it isn't visible.

Here's the code I use (VB.Net with iTextSharp library):

        pdfR = New PdfReader("f:\aangifte_bpm_2010.pdf")
        pdfS = New PdfStamper(pdfR, New
IO.FileStream("f:\temp\test_bpm_aangifte.pdf", _
        IO.FileMode.Create))
        Dim form As AcroFields = pdfS.AcroFields

        form.SetField("Naam", TextBox2.Text)
        form.SetField("Adres", TextBox3.Text)
        form.SetField("ParticulierOfOndernemer", "Ondernemer")
        form.SetField("BTWnummer", "123456789B01", "123456789B01")
        pdfS.FormFlattening = False
        pdfS.Close()

Users have to fill out the form and sent/hand in a printed copy to the tax
authorities

http://old.nabble.com/file/p27115722/aangifte_bpm_2010.pdf
aangifte_bpm_2010.pdf 


Leonard Rosenthol-3 wrote:
> 
> Can you post a sample form which demonstrates the problem?
> 
> And do you know what technology/product is being used to read values on
> their end?
> 
> -----Original Message-----
> From: Dinand Veldman [mailto:[email protected]] 
> Sent: Monday, January 11, 2010 12:34 PM
> To: [email protected]
> Subject: Re: [iText-questions] Enable Conditional Textfield when filling
> out form
> 
> 
> It's AcroForm technology.
> 
> I've tried several approaches, but the value I've assigned doesn't appear,
> although it is in the document (I can read it programmatically).
> 
> What actions has a CheckBox?
> 
> Dinand
> 
> 
> 1T3XT info wrote:
>> 
>> Dinand Veldman wrote:
>>> Hi, I want to fill out a form of the Dutch Tax Authorities 
>>> (belastingdienst). They put checkboxes in their PDf forms which directs 
>>> you to certain field (most textboxes) I'm able to fill out the normal 
>>> textboxes and set the correct checkbox choices, but I can't fill out the 
>>> textboxes that depend on the checkboxes choices. How should I proceed?
>> 
>> The first thing we should know is:
>> 
>> what technology is used for the form: AcroForm or XFA technology (or XFA 
>> with an AcroForm counterpart).
>> 
>> If it's AcroForm technology, you should see the check boxes if you list 
>> the fields in the form. I guess that there's some JavaScript that is 
>> executed if an end user clicks a field; when you fill out the field 
>> using iText, the JavaScript isn't executed (because iText ignores the 
>> JavaScript; it just changes some entries in the field dictionary).
>> 
>> ....
>> 
>> 
> 
> -- 
> View this message in context:
> http://old.nabble.com/Enable-Conditional-Textfield-when-filling-out-form-tp27108102p27114349.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Enable-Conditional-Textfield-when-filling-out-form-tp27108102p27115722.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to