Questions tagged [field]
All questions related to any field type in Sitecore context can use this tag
28
questions
1
vote
1
answer
44
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 ...
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 ...
1
vote
1
answer
64
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 ...
2
votes
1
answer
32
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.
1
vote
1
answer
233
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&...
1
vote
3
answers
169
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 ...
0
votes
0
answers
43
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 ...
1
vote
2
answers
491
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 ...
0
votes
1
answer
79
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 ...
0
votes
1
answer
106
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
...
1
vote
0
answers
117
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 ...
0
votes
0
answers
47
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 ...
0
votes
1
answer
258
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 ...
1
vote
0
answers
582
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 ...
1
vote
1
answer
138
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 ...
1
vote
1
answer
204
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 ...
1
vote
2
answers
192
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, ...
1
vote
2
answers
74
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?
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 ...
0
votes
3
answers
395
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&iar=0&w=592&...
1
vote
1
answer
245
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 ...
0
votes
0
answers
176
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 ...
0
votes
1
answer
615
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 ...
1
vote
1
answer
591
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 "...
1
vote
1
answer
173
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 ...
3
votes
1
answer
210
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 ...
2
votes
2
answers
259
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 ...
2
votes
2
answers
763
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 ...