Hi,
I have a field which is used sometimes, depending on user's selection. This field is defined as "AllowedEmptyStrings = False", so whenever this field is empty, the validation cannot be completed and we get an error. That's a good thing when we have an active field. But. When this field is not intended to be used (visible = false), what can we do with this empty field? I tried to define a default value in dataform_autogeneratingdataformitem as follows: (e.DataFormItem as DataFormNumericItem).ItemManager.SetValue(dataForm.ItemManager.DataFormItems["fieldname"], "mytext")
but it did not work out... I tried a similar method in dataformgettingstarted_propertychanged with no luck
dataformItm_FieldName.ItemManager.SetValue(dataForm.ItemManager.DataFormItems["fieldname"], "mytext")
Thank you!
Nicolas