Questions tagged [field]

All questions related to any field type in Sitecore context can use this tag

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

Custom token to rename Fields in Template

How can we create custom token in Sitecore to rename the fields of the template items at the time of item creation ? I want my fields to be renamed similar to general link fields present on the ...
user13629's user avatar
1 vote
0 answers
13 views

Restrict Future Date Selection in Sitecore Form Date Field Type [duplicate]

I need Date of birth field in Sitecore Form and for that i used Date Control. But it's allowing selecting future dates also. Is there way to restrict user to pick date before specified date. Also If ...
Gaurav's user avatar
  • 11
1 vote
1 answer
191 views

How to get all the fields & their values in Json

I'm trying to get all the custom field names & their values, in a JSON string. When I tried to serialize the item, it threw a StackOverflow exception: JsonConvert.Serialize(item) Then, I tried ...
sukesh's user avatar
  • 3,131
2 votes
1 answer
35 views

Enable Custom Property field for SItecore General Link Field

While inserting internal link from Sitecore General link field I am seeing Custom Property but that is disabled and not allowing to use it. How to use that property in Sitecore 10.
Rahul's user avatar
  • 21
1 vote
1 answer
466 views

How to add custom data attribute on Sitecore general link fields

I would like to add a custom data attribute for each link filed in Sitecore. This custom attribute should be configurable for Content Authors. For Example <a href="#" class = "test&...
karan's user avatar
  • 11
1 vote
3 answers
295 views

How to use Sitecore Multiroot Treelist

Using Sitecore 10.3 I would like to try the Multiroot Treelist field. The requirement is to have an option for the author to choose from multiple locations, in the treelist field. Could anyone please ...
sukesh's user avatar
  • 3,131
0 votes
0 answers
53 views

How to add a standard value to a field that uses a query with a relative path?

I have a Sitecore solution that has several website folders. Each of these sites has its own Settings/Enumerations. On my templates, the fields are configured to use a query with a relative path as ...
Erica Stockwell-Alpert's user avatar
1 vote
2 answers
626 views

Display filename with extension using FileField in Sitecore

I need to display the filename with an extension for a File type field in Sitecore SXA 10.2. The field value in content contains an Url that points to the pdf documents in Media Library. var fileField ...
Siddhi Kamat's user avatar
0 votes
1 answer
122 views

Failed to load Feature.FormsExtensions.Controllers.FieldBindingMapApiController

ERROR [Sitecore Services]: Failed to load Feature.FormsExtensions.Controllers.FieldBindingMapApiController, Feature.FormsExtensions Does anyone know what this error means? I'm using Sitecore ...
gjakovaime's user avatar
0 votes
1 answer
150 views

Regex validator on display name for hyphen(-) value

I need to create a regex field validator on display name such that it should not have hyphen(-) unless if there is any date in the name. Display Name Validation Error/ Allowed This is a Display Name ...
Yeshwanth's user avatar
1 vote
0 answers
119 views

On approving asset, required field error message not showing

I am experiencing a problem related to a required field, if someone ever had this problem or has some suggestions, please let me know :) I created a DateTime type field that is required when the asset ...
Maria's user avatar
  • 51
0 votes
0 answers
48 views

Custom code for sorting multilist not working

Tried to use custom code for populating multilist with sorted desired certain items of certain template sorted by publish date, after implementing code successfully, results in the multilist weren't ...
Mohamed Abbas's user avatar
0 votes
1 answer
337 views

Adding custom data source to multilist with search field not working

After creating a class to get desired sorted items to populate list, after making sure to type in the source correctly in the source field as code:namespace.classname, assemblyname , still results ...
Mohamed Abbas's user avatar
1 vote
0 answers
681 views

GraphQL search: How to query using a list of ids?

I have the following GraphQL statement. This GraphQL statement searches through our pages, filtering on a specific page type, and then filtering on if a specific droplink field contains either of two ...
James G.'s user avatar
  • 135
1 vote
1 answer
156 views

Creating Internal Links in General Link Fields is Failing in Sitecore 8.2 Environments

We have a few templates in our project which use the General Link field type. We're finding them unpredictable. In our Staging environment, by clicking the Insert Link field to create a link to ...
Ron Ritchie's user avatar
1 vote
1 answer
224 views

Field validation not working in Rendering Parameter Template for MVC form

I've assigned a Parameter Template in the MVC form rendering called Redirect Parameters (/sitecore/layout/Renderings/System/Forms/Mvc Form) as shown in below screnshot Within this template, I've ...
Álvaro Montenegro's user avatar
1 vote
2 answers
230 views

General Link with Search field is adding language code along with ID in the Item Link

We are using the General Link with Search field to filter and select the items in Sitecore 10.1. Now when I click Search for a link on the field and then search for the items of a particular template, ...
Sumit Bhatia's user avatar
  • 5,035
1 vote
2 answers
86 views

How to get Sitecore Updated Field only?

I want to send only updated fields for Translation. How can I know which fields have been updated on an item?
Gautam Aneja's user avatar
2 votes
2 answers
1k views

How to specify a datasource for a droplist field in sitecore 8.0 template

I am using Sitecore 8.0 where I have created a template with field droplist field type and I want to give datasource for it where it references another template datasource. And we have Multiple Sites ...
Vinaya's user avatar
  • 321
0 votes
3 answers
436 views

How to remove the image attributes of a rendered image field

I'm rendering the image like : @Html.Sitecore().Field(Model.ImageId, Model.InnerItem) which is rendering the image like this: <img src="/-/media/finance.png?h=400&amp;iar=0&amp;w=592&...
sukesh's user avatar
  • 3,131
1 vote
1 answer
268 views

Event responsible for move field type from Shared to Versioned

When I use Unicorn to deserialize the field from Shared to Versioned, data about the field isn't removed from dbo.SharedFields table. I think this is due to disabling the event that Sitecore uses to ...
Антон Достоевский's user avatar
0 votes
0 answers
196 views

Sitecore GeneralLink Field causing 403 Forbidden error

We are getting 403 Forbidden error while selecting general link field. This was working earlier and causing error now. We also tried Sitecore Services Client 403 Forbidden, but no luck. We have also ...
KolamudiSridhar's user avatar
0 votes
1 answer
682 views

Item from Database.GetItem gets NullReference exception in field HasClones and in FieldRenderer.Render in test

I am trying to set up a simple test project to initially assert that my local C# models correspond to my Sitecore templates. The Item retrieval is successful using Database.GetItem(itemPath) and I can ...
Viktor's user avatar
  • 1
1 vote
1 answer
668 views

How to set link field href attribute to "#"

Using a general link field, I want to be able to author the field such that the final contents of an outputted link are: <a href="#">Anchor Text</> (notice the empty anchor "...
Marcel Gruber's user avatar
1 vote
1 answer
178 views

Is it possible that two items based on the same template will not have the same fields?

I think ideally it is not possible but got confused when reading Sitecore's 9.3 learning module where this scenario is marked as true. I wanted to inform on this but before doing so thought of ...
Anupam Baksi's user avatar
3 votes
1 answer
224 views

Help text not visible

I have added help text for a template field in the Short Description field, Japanese version. When the item is created in the Japanese version, the help text is not seen. Using Sitecore 9.2 Template ...
sukesh's user avatar
  • 3,131
2 votes
2 answers
275 views

Set the field value always to "en" language version value when setting the field from versioned field to shared field

Setting an existing field "shared" from "versioned" on the template always sets the most recent language version value for that field in the items of that template type. Is there some way to always ...
Dhananjay Kurekar's user avatar
2 votes
2 answers
860 views

How to exclude Standard fields when reading an item's fields

When reading an item's fields like this: item.Fields.ReadAll(); It reads all the fields. Is there a way to exclude the default Sitecore fields and get only the fields that a user has created. For ...
sukesh's user avatar
  • 3,131