We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

When setting a value on PdfLoadedComboBoxField, the result does not show the value of the field although it is correctly selected

I've attached the before and after of the pdf itself...

You will notice that in the before, the dropdown boxes are able to be selected and typed into as combos, etc... no issues.

The after shot you will notice that the dropdowns show nothing... even though the values are there and selected... which you can see as soon as you click on the field itself... it will show what is actually selected... (see below example... in that column those fields have been given values.)

so... the code... here is what I am doing:

PdfLoadedComboBoxField fdata = form.Fields["S10-1"] as PdfLoadedComboBoxField;
PdfLoadedComboBoxItemCollection comboCollection = fdata.Items;
fdata.Editable = true;
fdata.Visibility = PdfFormFieldVisibility.Visible;
fdata.SelectedValue = "Gearless";

I have been struggling with trying to get this visible after the selection has been set... and I cannot figure out why... could not find anything on the forum for this either.

I'd appreciate any help you could provide.


Attachment: TractionForm_136491bb.zip

2 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team March 7, 2023 01:27 PM UTC

We suspect that you have reported that the combo box field value is removed after editing the field value. we have tried to reproduce the issue with the provided documents but it was working properly. we have attached the sample for your reference.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Net7.0TestSample-2057036513


can you please share more details about the reported issue like a video demonstration/highlighting the issue with before and after issues? so that we can assist you further with this

PA Pascal March 7, 2023 08:09 PM UTC

Hey Irfana,

THANK you soooo much... the key was this line:


I didn't know I needed to set that... so now it shows up no problems.

Thank you!!

Live Chat Icon For mobile
Up arrow icon