Unable to change custom flag for bound FieldConfig

Hi, I am trying to dynamically change a field in a fieldGroup on a valueChangeListener from a optionsGroup.
So the dynamic field can be either lookup field or text field. When it is set to lookup field on the beginning and then I change value on the options group, it cannot change to text field because of “Unable to change custom flag for bound FieldConfig”

My field:
image
image

ValueChangeListener on optionsGroup:
image

Any suggestions on how can I solve this?

Thanks in advance!

Hi,

Custom flag cannot be changed at run time, it is used only once before screen is opened, you can only remove the existing field and create a new one.

1 Like

Thanks a lot Yuriy, always with a fast response on point :slight_smile: