bartverdonck / Sitecore-Forms-Extensions

http://onelittlespark.bartverdonck.be/category/sitecore-forms-extensions/
MIT License
58 stars 36 forks source link

On some field types the Store back checkbox is not visible. #107

Closed SchelstraeteRuben closed 3 years ago

SchelstraeteRuben commented 3 years ago

Describe the bug On some field types such as Radiobuttonlist, Email, Date, ... There is no store back checkbox. I believe this prevents the value being saved to Xconnect, right?

This is the checkbox i'm talking about: image

Is there any additional configuration necessary to enable this functionality? Or is Sitecore preventing proper store back here?

I'm using the latest version of the SFE (3.1)

bverdonck commented 3 years ago

By default, the value providers in Sitecore only provide read capabilities. For storage you are supposed to write custom submit actions.

The store value is added by SFE and is an additional method on valueproviders to provide a write functionality without submit action. The value providers from SFE support this functionality. On your custom value providers you have to implement the IFieldValueBinder from SFE.

http://onelittlespark.bartverdonck.be/sitecoreformsextentions/3.1/developerdoc/valueproviderstoreback.html

I will have a look, why this checkbox is not present on some of the field types.

SchelstraeteRuben commented 3 years ago

Thanks for the clarification Bart. It seems that the "store" method isn't called when this checkbox is not present. I'm not sure about this, but definitely something to check out when you investigate this.

SchelstraeteRuben commented 3 years ago

In the meantime, i can confirm that the absence of this checkbox prevent storing the values on form submission.

bartverdonck commented 3 years ago

In the core-db, you need to add the "StoreBindingValue" controldefinition on the advanced tab of the property editor settings. Looks like these additions have gone lost in an upgrade of the module. I will re-add them.

bartverdonck commented 3 years ago

Added store binding on Checkboxlist, dropdownlist, listbox, radiolist, number, multiline, checkbox and date field

rabehaja commented 2 years ago

If you add the StoreBindingValue the fields e.g. the Single Line Text:

/sitecore/client/Applications/FormsBuilder/Components/Layouts/PropertyGridForm/PageSettings/Settings/SingleLineText/Advanced

And add in the ControlDefinitions field the StoreBindingValue, you will be able to see the checkbox in the form editor.

P.S: I just downloaded and installed the last package of Forms Extension and still experience this issue.