Questions tagged [field]
All questions related to any field type in Sitecore context can use this tag
23
questions
1
vote
3
answers
50
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
29
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
212
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
34
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
59
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
115
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
41
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
151
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
388
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
113
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
146
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
140
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
53
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
743
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
302
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
198
views
Event responsible for move field type from Shared to Versioned
When I use Unicorn to deserialize field from Shared to Versioned, data about field isn't removed from dbo.SharedFields table.
I think this is due to disabling event that sitecore uses to move field ...
0
votes
0
answers
148
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
483
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
497
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
161
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 ...
2
votes
1
answer
176
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
214
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
655
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 ...