Page 1 of 1

Checkbox as form field not working

Posted: Wed May 07, 2025 7:43 am
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.

Re: Checkbox as form field not working

Posted: Wed May 07, 2025 9:39 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: Checkbox as form field not working

Posted: Tue May 20, 2025 8:48 am
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.

Re: Checkbox as form field not working

Posted: Tue May 20, 2025 11:43 am
by Lech Kulikowski
Hello,

You are welcome.