i need to show or hide specific elements in a prebuild pdf template i do not manage.
Depending on the information displayed, i need to set the visible property of a checkbox or textboxfield.
But the "PdfTextBoxFieldWidget" does not have a setter attribute. So How do i achieve this?:
- Code: Select all
if (formWidgetCollection[fieldsDict[_fieldName]] is PdfTextBoxFieldWidget)
{
(formWidgetCollection[fieldsDict[_fieldName]] as PdfTextBoxFieldWidget).Text = _value.Text;
(formWidgetCollection[fieldsDict[_fieldName]] as PdfTextBoxFieldWidget).Visible = true; //<< no setter attribute
(formWidgetCollection[fieldsDict[_fieldName]] as PdfTextBoxFieldWidget).ReadOnly = _value.IsReadOnly;
}