Skip to main content

Questions tagged [fieldtype]

For questions related to Sitecore fields types, including both native and custom types

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 views

Translate Sitecore Form Date Min and Max date Validation message in Spanish

I am using sitecore form date control and specififed min and max date. when trying to enter date more than max value getting below validation message : "Please enter a value less than or equal ...
Ajay's user avatar
  • 1
2 votes
1 answer
39 views

Duplicate selected IDs appearing in raw value of checklist field after deleting an item and linking to other (already selected) item

I ran into an issue when cleaning up two pairs of items like so: Parent item Reference Item 1 Similar Reference Item 1 [delete and relink to Reference Item 1] Reference Item 2 Similar Reference Item ...
Marcel Gruber's user avatar
2 votes
1 answer
37 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
3 answers
353 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,162
0 votes
0 answers
50 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
356 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
2 answers
242 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,105
1 vote
2 answers
95 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
3 votes
1 answer
325 views

Reading values from Password field type

I am trying to use the password field type on some settings items to store data instead of using configs, however when reading its values in code (for example item["passwordfield"]) we are ...
Cristi Vulturar's user avatar
1 vote
1 answer
39 views

How do I display the RTE/ Word Content in Asp.net webforms?

We have bee using Sitecore 8.1 and in 8.1 we use the Field Types RTE and Word more . Due to some reason i had to use Asp.net Webforms not MVC. Can any one please help me how do i dispay the content of ...
user3621's user avatar
  • 414
1 vote
1 answer
109 views

Solve copy and paste image path

I created a custom image field, so far its working fine. but when I take an image path and add it manually to the field without clicking browse. It disappears which is not the normal behavior in OOTB ...
Fatema elsayed's user avatar
0 votes
0 answers
214 views

Search checklist field data in the Content search API in Sitecore SXA

I would like to search checklist data through the Content search API in the Sitecore SXA. However, it is not searching any data based on checked value in checklist field. Sharing code : Template: Name ...
Ashish's user avatar
  • 912
3 votes
2 answers
148 views

Items added to QueryableTreelist, not updated in the links database

I am using a Custom Field Type called QueryableTreelist which is extended from built-in Treelist field type. When an item is added to this queryabletreelist field, the linked item do not show the link ...
Somnath Dutta's user avatar
3 votes
1 answer
2k views

Changing the display name of field in the template does not reflect the name at item level

I had created a template in Sitecore 9.0.2 named as XYZ, and had a field in that named as "Test". Now the client wants to change the name of the field "Test" to "Test1". I changed the display name ...
Shomila's user avatar
  • 45
3 votes
2 answers
783 views

Querying DropLink field from Sitecore to SOLR

In my template, I have a field called Category which is a type of DropLink and not MultiList. When I tried to find it in SOLR, I got this field as below. "category_sm":["{951063A6-0BBA-484F-8CAB-...
Arvind Gehlot's user avatar
1 vote
1 answer
1k views

Sitecore 9.3 Multiline Text adds <br> tags

We have installed a fresh instance of 9.3 and moved the data from 8.2, via packages. For page items, there is a multi-line field for meta tags and the values are included separated by new-lines. ...
sukesh's user avatar
  • 3,162
0 votes
0 answers
225 views

Custom Field Type - WebEdit Buttons not showing in Experience Editor

I've created a custom Field Type that's very similar to Rich Text (a Duplicate, in fact) and want to use it with a custom HTML Editor Profile that's similar to Rich Text XA (you guessed it, also a ...
Mark-Danney's user avatar
0 votes
1 answer
144 views

How to get/publish the items removed from the multilist field

Recently i was trying to get the items which are removed from the multilist field , suppose i have a multilist field and i added 3 items from left side to right side and saved and published those ...
Rohan Bhateja's user avatar
0 votes
2 answers
129 views

droptree field -Return data by language

I used droptree field to allow the content author to select news items, and the content author has a specific language for example (en), but I can not filters news by languages. is there any way to ...
Raed Abu Garbeiah's user avatar
4 votes
3 answers
829 views

Multilist with search display results without Template name

I used the multilist with search and it works fine, but the results return the items and (Template name), and I want to return items name only without template name. is there any way to do that? my ...
Raed Abu Garbeiah's user avatar
0 votes
0 answers
160 views

Field type to select a parent item along with some child items

I have the following content structure. I want the parent and child relationship to be maintained post selection. If I use a Treelist and select a Region and some Locations, will the child items ...
S Keshav's user avatar
1 vote
2 answers
879 views

How to sort items by a datetime field

Article Publish Date is a field of type Datetime List<Item> articles = GetArticles(); articles = articles.OrderByDescending(x => x.Fields[Constants.Templates.Article.Fields....
sukesh's user avatar
  • 3,162
1 vote
1 answer
61 views

Sitecore content field that queries an index

In our Sitecore 9.2.0 solution, I want to present data from a microservice to the editors. The editors should be able to browse and select one or more items from the microservice. My initial idea was ...
Hos's user avatar
  • 884
4 votes
1 answer
820 views

Manually change the updated date of an item?

I've created a processor that archives items that haven't been updated in 2 years, and I'm trying to test this by altering a date of an item, but every time I change it and save, it reverts back. I'm ...
Levi Wallach's user avatar
  • 1,085
1 vote
2 answers
300 views

Multireference field types in C#

I know that Treelist and Checklist fields are of Type MultilistField in C#, but I need to know the C# types for the following field types: TreelistEx Multilist MultilistWithSearch
squadwuschel's user avatar
  • 1,165
1 vote
1 answer
1k views

Rich Text Editor target for mailto links

Using Sitecore 8.2, when I add a mailto: link, it gives me a validation error that external links require a target. However, the modal tab for mailto links doesn't contain a target field, and if I ...
Levi Wallach's user avatar
  • 1,085
1 vote
1 answer
1k views

How to remove the blank field for Sitecore Droplink and Droplist

In Sitecore 9.0, when I create a Droplink or Droplist Sitecore generates a "blank" selection. For example I have a Droplink from Monday to Sunday, the first option will be a blank selection. How can ...
Ercan Polat's user avatar
0 votes
4 answers
980 views

Sitecore complex type field- name value with dropdown list

Is there any complex field type available in Sitecore with Name value + dropdown list? some thing like : Key + value + Dropdownlist
Hussain's user avatar
  • 482
1 vote
1 answer
501 views

Define a content list and populate it

I'd like to define a field in a component that would display a set of values that my contributors could choose when using my component. Let's say that my field is a ratio, I want the users to be able ...
Christophe's user avatar
0 votes
0 answers
210 views

Sorting a Sitecore query used to populate a droplink

We have a query that's populated a droplink that displays photo items. It's grabbing these items from multiple locations, so the query is concatenating those subparts of the query. I'm wondering if ...
Levi Wallach's user avatar
  • 1,085
0 votes
1 answer
574 views

Retrieving item from Droplink Rendering Parameter

How can I get the referenced item from a droplink field in rendering parameters. What I tried: var model = new DFFVideoModel(); LookupField VideoItem = (LookupField)RenderingContext.Current....
Levi Wallach's user avatar
  • 1,085
1 vote
0 answers
268 views

Problem while selecting too many items in multilist with search

I have a multilist with search field and on the left hand side there are 1100 items which we can select. But when I select more than 130-140 items, the left hand side field gets emptied and I am not ...
Rohan Bhateja's user avatar
5 votes
2 answers
2k views

Sitecore populating date field with yesterday's date via $date token

I have a date field in one of my templates who's default value is $date. When I create an item using that template, the raw value is 20190522Z, but when I view it not raw I see it as yesterday's date ...
Levi Wallach's user avatar
  • 1,085
1 vote
0 answers
319 views

MultiList with Search not showing items for non-admins

There is a related item that suggests providing read access to /sitecore/system/Settings/Buckets/Item Buckets Settings, which I've done. That at least removes the loading icon from the left shuttle ...
Levi Wallach's user avatar
  • 1,085
1 vote
1 answer
1k views

Default value "choose..." for droplist

This is what I'm looking for: I have a droplist item that is looking in a particular folder for values to include. However, I would like to specify a default of "Choose..." Is it possible to do ...
Levi Wallach's user avatar
  • 1,085
0 votes
0 answers
302 views

Can we dynamically populate sitecore multilist field using sitecore queries?

Can we dynamically manage the left and right-hand side of a Sitecore multilist field using queries? I want top 6 articles (sort based on published date desc) always pop up dynamically on the multilist ...
Niti Chauhan's user avatar
0 votes
3 answers
3k views

How do you programmatically update a date field?

I try to set field in template of type "Date" programmatically, string postedValue = GetValue(formSubmitContext.Fields.FirstOrDefault(f => f.Name.Equals(fieldName))); DateField dateField = ...
shimaa elsayed's user avatar
4 votes
1 answer
2k views

How to change Sitecore field value based on another field(s)

Is there a way to dynamically change the value of a field in Sitecore based on other fields' values, something like computed fields in RDBMS? For example, let's say we have a template that has the ...
AJ -'s user avatar
  • 219
5 votes
1 answer
1k views

When is item.Fields.ReadAll() required to be run?

When iterating an item's fields', sometimes the API fails to see a field unless item.Fields.ReadAll() is executed prior to checking for field existence. I've ran into this multiple times in all my ...
jrap's user avatar
  • 4,951
1 vote
1 answer
258 views

Translate ID into a displayname

I'm trying to index the Sitecore item fields. Each field has a type and I saw that some field types contain an item ID(or Media item) and other the display name. For example(data from the REST API) "...
Diego Gutierrez's user avatar
2 votes
1 answer
6k views

Get MultilistField selected items

I am working on a view rendering and trying to get a list of selected items from a multilist field. I don't know if it matters, but the list field I am trying to get the selected items from is a ...
Michael's user avatar
  • 520
4 votes
1 answer
178 views

Different Field source for different Language

Is it possible to assign different field source for the different language? For example, I have a sample template in with samplefield. samplefield has a field source as /sitecore/content/Home-en ...
Siva Kumar's user avatar
1 vote
1 answer
3k views

Fieldsource query for droptree field

Is it possible to use query for Droptree field in Sitecore 8.1? In a multisite solution, I would like to point Droptree field source to an item in that particular site. Is this possible?
Vijaya Akkenapally's user avatar
4 votes
2 answers
2k views

Name Value Lookup List where Name is from data source

Is it possible in Sitecore 7.5 to bind all the names in a Name Value Lookup to a datasource? For example the name will be represented as a dropdown list.
Lennox M's user avatar
3 votes
1 answer
265 views

Multilist with Search fields with duplicate items

We have one problem in Sitecore. Whenever we use the "Multilist with Search" fields, the same item is displayed multiple times with different versions. And the content editor is able to select same ...
Akaa's user avatar
  • 183
3 votes
0 answers
783 views

Image and link fields rendering as raw values

I'm using Sitecore 8.2 and attempting to render Image and General Link fields as recommended in this post: @model Company.Feature.Foo.Models.FooBarViewModel ... @Html.Sitecore().Field("{123e4567-e89b-...
Charlie Brooking's user avatar
3 votes
1 answer
130 views

FieldType of custom WFFM field disappearing

I'm working on a custom field type for WFFM forms that records a cookie. Our save action uses the ControlResult's FieldType property to know when it's a field of this type and do some extra logic on ...
Michael Smith's user avatar
0 votes
1 answer
287 views

Sitecore 7.2 using droplink

I will start out by saying I am a bit of a noob when it comes to C# and Sitecore, but I am getting better. I am trying to update our code to use a droplink control for an event item (we'll call it ...
chipsterva69's user avatar
1 vote
1 answer
639 views

Name Value List with Value field as Rich Text

Is it possible to have the Value field of the NAME-VALUE list as the RichText? Our Requirement is to provide the HTML content in the Value field and render in the webpage as HTML.
PVM's user avatar
  • 963
4 votes
2 answers
745 views

Granting a role access to a field

I have a component in my sitecore instance called an Article Download component. One of the fields for this component is called Download Item and it is the type link (not General Link). My authors are ...
Michael's user avatar
  • 520