Try our conversational search powered by Generative AI!

Can't write text in my Factblock



I am trying add text to my Factblock, but get this error instantly after typing the text:

I tried adding [UIHint("StringsCollection")] to the IList<string> property, but im still getting the error.

public class FactBlock : BlockData
[Display(Name = "Tittel", GroupName = SystemTabNames.Content, Order = 1)]
public virtual string Title { get; set; }

[Display(Name = "Fakta", GroupName = SystemTabNames.Content, Order = 2)]
public virtual IList<string> ListOfStrings { get; set; }


This happend after upgrading to CMS 12.

Any ideas?


Edited, Sep 22, 2023 10:48

Seems like the input is a string, not a list of strings.

You could check in CMS/Settings/Content Types/FactBlock, that your property is in fact recognized as a string list. If it is not, then the property is not synced correctly.

Sep 23, 2023 23:01

It looks like the property is recognized as a string list:

Any other things I could try?

Sep 25, 2023 7:46

You don't need  [UIHint("StringsCollection")] as a decorator. In CMS 12 it is enough to have it as IList<string>.
The easy fix is either change the name of the property to something else. I believe this issue is due to property was not synced after it had it's datatype changed (from string to List<string>) 

See this thread where it had a similar issue for commerce but I believe it should be same for CMS too -

Sep 25, 2023 10:19
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.