Skip to main content
edited tags
Source Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117

I'm using sitecore 8.2. I have a list of the Template Field items where I need to check the "Enable field level fallback" field programmatically.

So, something like that:

foreach (var item in ListOfItems)
{
    item.Fields["Enablefieldlevelfallback"].Value = "1";
    break;
}

Any help would be appreciated.

Thanks!

I'm using sitecore 8.2. I have a list of the Template Field items where I need to check the "Enable field level fallback" field programmatically.

So, something like that:

foreach (var item in ListOfItems)
{
    item.Fields["Enablefieldlevelfallback"].Value = "1";
    break;
}

Any help would be appreciated.

Thanks!

I'm using sitecore 8.2. I have a list of the Template Field items where I need to check the "Enable field level fallback" field programmatically.

So, something like that:

foreach (var item in ListOfItems)
{
    item.Fields["Enablefieldlevelfallback"].Value = "1";
    break;
}

Any help would be appreciated.

Source Link

How to programmatically set "Enable field level fallback" field on a Template Field item?

I'm using sitecore 8.2. I have a list of the Template Field items where I need to check the "Enable field level fallback" field programmatically.

So, something like that:

foreach (var item in ListOfItems)
{
    item.Fields["Enablefieldlevelfallback"].Value = "1";
    break;
}

Any help would be appreciated.

Thanks!