Checkbox as form field not working

Stimulsoft Reports.NET discussion
Post Reply
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Checkbox as form field not working

Post by John »

Dear support team,

I require a pdf with form fields - both checkboxes and a signature field. I have tried everything to get it to work but the checkboxes won't check when I click on them.
I've attached a simple MRT to demonstrate and the resulting PDF.
Here are the details:
  • Each checkbox is marked as "Editable"
    I am using c# code in the background
    To get the signature field to work correctly, I am using a fix you gave me some time ago:

    Code: Select all

            public void SetSignatureField(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
            {
                e.Value = "pdfunsignedsignaturefield";
            }
    
    Also, on exporting the pdf, I am using the following setting:

    Code: Select all

    settings.AllowEditable = StiPdfAllowEditable.Yes;
When you open the PDF you will see that the checkboxes are displayed but when you click on one, nothing happens. What can I do to get it to work?
Many thanks.
Attachments
Checkbox_Test.pdf
(949.16 KiB) Downloaded 264 times
Checkbox_Test.mrt
(65.47 KiB) Downloaded 265 times
Lech Kulikowski
Posts: 7691
Joined: Tue Mar 20, 2018 5:34 am

Re: Checkbox as form field not working

Post by Lech Kulikowski »

Hello,

What product, version are you use? How do you export your report to PDF?

Thank you.
Attachments
Screenshot 2025-05-07 233817.png
Screenshot 2025-05-07 233817.png (114.09 KiB) Viewed 3905 times
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Re: Checkbox as form field not working

Post by John »

Thank-you for your reply and sorry for my delay in answering. I am using new dlls with version 2025.2.1.0. For the example I had to simplify things alot. In my code, the above report is added as a sub-report to a main StiReport. The problem, I have discovered, only happens when I have this constellation. I have modified the code so that the report is now stand-alone, no longer a sub-report and now it is working. This is a suitable work-around for me.
Thanks for your help.
Lech Kulikowski
Posts: 7691
Joined: Tue Mar 20, 2018 5:34 am

Re: Checkbox as form field not working

Post by Lech Kulikowski »

Hello,

You are welcome.
Anthona
Posts: 3
Joined: Fri Jun 20, 2025 4:16 am

Re: Checkbox as form field not working

Post by Anthona »

John wrote: Wed May 07, 2025 7:43 am Dear support team,

I require a pdf with form fields - both checkboxes and a signature field. I have tried everything to get it to work but the checkboxes won't check when I click on them.
I've attached a simple MRT to demonstrate and the resulting PDF.
Here are the details:
  • Each checkbox is marked as "Editable"
    I am using c# code in the background
    To get the signature field to work correctly, I am using a fix you gave me some time ago:

    Code: Select all

            public void SetSignatureField(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
            {
                e.Value = "pdfunsignedsignaturefield";
            }
    
    drive mad
    Also, on exporting the pdf, I am using the following setting:

    Code: Select all

    settings.AllowEditable = StiPdfAllowEditable.Yes;
When you open the PDF you will see that the checkboxes are displayed but when you click on one, nothing happens. What can I do to get it to work?
Many thanks.
Why are the checkboxes in my PDF form not responding when clicked, despite being marked as 'Editable' and using the correct export settings?
Lech Kulikowski
Posts: 7691
Joined: Tue Mar 20, 2018 5:34 am

Re: Checkbox as form field not working

Post by Lech Kulikowski »

Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.
Post Reply