I have created a custom fieldtype with a fieldpicker settting
[Setting("Depends on field", description = "Choose the field on which this field depends", control = "Umbraco.Forms.Core.FieldSetting.FieldPicker")] public string DependantFields { get; set; }
When I try to get the value through the API it is always empty despite I have chosen a field in the backend. Contour version is 1.1.4.1
I have created a extra setting to test. It's just a dropdown with some prevalues. I can get the value of that setting through the API. So it's related to the fieldpicker.
Cannot get value from fieldpicker setting
I have created a custom fieldtype with a fieldpicker settting
[Setting("Depends on field", description = "Choose the field on which this field depends",
control = "Umbraco.Forms.Core.FieldSetting.FieldPicker")]
public string DependantFields { get; set; }
When I try to get the value through the API it is always empty despite I have chosen a field in the backend. Contour version is 1.1.4.1
Comment author was deleted
And is the value saved?
Hi Tim,
Yes it is. If i go back in the form designer I see my saved selection.
I have created a extra setting to test. It's just a dropdown with some prevalues. I can get the value of that setting through the API. So it's related to the fieldpicker.
Dave
Comment author was deleted
Guid must be something else then the fieldid then, you can check the UFSettings table to see what the guid is
Hi Tim,
Guid in the table was the guid passed into the function. A upgrade to the latest version of contour solved the problem.
Thx for the help !
Comment author was deleted
That's strange but glad it's sorted
is working on a reply...