Questions tagged [custom-field]

For questions related to the creation, customization and use of custom field types in Sitecore

Filter by
Sorted by
Tagged with
9 votes
3 answers
2k views

Item validator access already stored data instead of newly inputed data

Im facing a problem with sitecore item validator when I try to save the data. The purpose of my validator (the class inherit from StandardValidator) is to simply check if, atleast, field A or field B ...
TeKilla's user avatar
  • 135
7 votes
2 answers
1k views

Multilist Field where users can add new values

I'm looking to replicate the SharePoint taxonomy functionality in Sitecore - there is the ability in SharePoint to type a new value in a multivalue field and it would automatically create the new ...
George Chang's user avatar
  • 1,225
5 votes
1 answer
670 views

Issue with Custom Field Type not rendering in Shell

I created a custom Field in /sitecore/system/Field types/User Defined, called Role Selector. It inherits from a class called MultilistExBase (which I have brought into the project thanks to this post) ...
vandsh's user avatar
  • 1,651
5 votes
2 answers
514 views

WFFM - File size and File type validation not working in 8.1 160523

I am working with WFFM File upload and was asked to restrict File Size and File types. So I created a custom field that inherits the OOTB Upload File of WFFM in order to accommodate the restrictions. ...
ZQuiray's user avatar
  • 430
5 votes
1 answer
966 views

Getting the page ID when clicking a custom link field in Sitecore

I am creating a new link field in Sitecore following this link: Link for custom link field I have successfully created one called modal link. Specifically I want to get all the modal components that ...
qwert's user avatar
  • 389
4 votes
3 answers
797 views

How to convert Facet Data to Json format

I am working on display facet data on the Experience profile tab. I am following the below article for the same. http://zhenyuan.azurewebsites.net/post/displaying-custom-facets-in-contact-profile But ...
Prince Sharma's user avatar
4 votes
2 answers
2k views

How to create a multiple column field with text boxes

I am trying to figure out if i can have multiple columns and multiple rows for one particular field under an item in Content Editor. Field Name: [column 1][column 2][column 3][column 4][column 5] ...
Tony's user avatar
  • 569
4 votes
0 answers
93 views

4 Image Controls in a Composite Control, Not showing action buttons

I have created a composite control in Sitecore 9 and I can use that in template editor when adding new fields. This control is supposed to show an Image control where I can browse and select images ...
Ali's user avatar
  • 391
4 votes
0 answers
455 views

Apply field validations across fields

I'm building a component that, among other fields, contains "title" and "text" fields. The business logic is: If both fields are empty, that is OK If both fields are populated, that is OK If one ...
Ben Lipson's user avatar
  • 1,382
3 votes
2 answers
979 views

Sitecore Forms Custom field gives 400 bad request when trying to add to a form via the forms interface

On Sitecore 9.2.0, I have created a custom field, based on the relevant tutorial (https://doc.sitecore.com/developers/92/sitecore-experience-manager/en/walkthrough--creating-a-custom-rating-element-...
Yiangos's user avatar
  • 101
3 votes
4 answers
2k views

How to find templates that use some specific field type?

I need to find all templates that use a defined field type. What is the best way to do it ?
Arbejdsglæde's user avatar
3 votes
2 answers
147 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
404 views

Sitecore Custom Predicate Rule not working

I've implemented a custom Predicate to create the segmented list in Sitecore 9.1. But Segment Rule is not working. I've followed the below steps : Custom Predicate Class: Deployed DLL to Project ...
Raman Gupta's user avatar
  • 2,474
3 votes
1 answer
968 views

WFFM - Send Email With Attachment not working in 8.1 160523

I am working with WFFM Upload File and was asked to send the file by attaching it in the Email. So I created a custom Save Action that is almost the same with the OOTB Send Email Message except for an ...
ZQuiray's user avatar
  • 430
3 votes
1 answer
537 views

Searching the date array

I have the following setup: I'm indexing Sitecore items (Employee) in Solr I have the computed field "checkins" of type stringArray set in the index Checkins is list of datetime values I get from ...
Miroslav Zadravec's user avatar
3 votes
2 answers
182 views

How to set value in the quick info of an item in sitecore

i want to set field of Created From for an item in sitecore which appeared in the quick info section , how can i do that via sitecore or using powershell script?
Sara's user avatar
  • 81
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
2 votes
2 answers
559 views

Sxa tokens not taken into account in code query

I am working on a custom field which is based on :https://marketplace.sitecore.net/en/Modules/A/Advance_Image_Field.aspx I am trying to make it suitable for SXA by changing the way to find thumbnails....
Joey Novais's user avatar
2 votes
2 answers
2k views

Custom field with (sheer) dialog. How to get data from other fields in the item

I have a custom field with two menu items, of which one of them opens a (sheer) dialog. But I need the value from other fields of the item in my dialog. However, I cannot find any reference to the ...
Erwin Rijss's user avatar
2 votes
1 answer
220 views

Custom field type has empty string for FieldTypeKey in RenderPipelineArgs; how to populate?

I'm creating a custom field type for our responsive image implementation in Sitecore 10.1 and I need a way to display the image using Html.Sitecore().Field("field_name"). I think I'm mostly ...
Michael Smith's user avatar
2 votes
1 answer
594 views

setting tool tip for custom button for rich text editor

I have created a custom insert link button by inserting an item based on /sitecore/templates/System/Html Editor Profiles/Html Editor Button in html editor profile rich text editor. It is working ...
rdhaundiyal's user avatar
2 votes
1 answer
988 views

Custom code for sorting sitecore multilist field items

I have written the following code to sort the left hand side of multilist using code: public Item[] ListQuery(Item item) { try { List<Item> sourceItems = new List<Item>(); ...
Niti Chauhan's user avatar
2 votes
1 answer
314 views

Sitecore - Application Insights Telemetry - Custom properties

I am struggling with accomplishing the following scenario: I need to create a custom property for Application Insights, containing an identifier for the user (which is read from the data store at ...
Marius Popa's user avatar
2 votes
0 answers
170 views

WFFM - Custom validation class on form not being hit

Using Sitecore 8.2 I have a form and I'm trying to add custom validation to the email field to block forbidden domains. I created the validation item in Sitecore and added it to my field: and I ...
Erica Stockwell-Alpert's user avatar
2 votes
0 answers
780 views

Adding custom control dynamically to Custom Field in Sitecore gives App_Web_xxxx.dll not found

I have a created a simple user control and dynamically added that control to a new custom field in Sitecore. When viewing the item having that custom field in content editor, it works just fine. If I ...
Rishabh Kumar's user avatar
1 vote
2 answers
274 views

Glass Mapper mapping exception for a LinkList field after upgrade to Sitecore 10.2

We are upgrading our Sitecore instance from Sitecore 8.2 version to Sitecore 10.2 version, ORM used in Sitecore 8.2 is GlassMapper(v4.3.4.197). We have upgraded glass mapper in Sitecore 10.2 via NuGet ...
Karan Kumar's user avatar
1 vote
1 answer
49 views

Custom segmentation based on custom user fields

I am running Sitecore 8.1 rev 3. I have indexed the values I want to segment against in an index, but those are associated to each user profile - not against a Contact. I can, however, easily ...
Emanuele Ciriachi's user avatar
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
1 answer
701 views

Custom Sitecore field type with auto complete and focus out event [closed]

I've to develop a custom field type with auto complete functionality. If content author start typing in this field then it will show autocomplete data from external database. On focus out of this ...
Sandeep's user avatar
  • 785
1 vote
3 answers
591 views

Is it possible to edit/customize columns that appear for User Manager?

Upon accessing User Manager, there are eight default columns: User name, Domain, Fully qualified name, Full name, Email, Comment, Language, and Locked. Is it possible to add/remove columns to display ...
TAB's user avatar
  • 11
1 vote
1 answer
707 views

Customize Sitecore Image Field Property Dialog

I want to give a custom image field's property dialog a class dropdown. Currently I have a custom image field which points to a custom image control. That control overrides Sitecore.Shell....
Teeknow's user avatar
  • 2,477
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
1 vote
2 answers
2k views

Multi-root treelist with queries

I'm trying to use the Multi-root treelist that Kam Figy made and that Zachary Kniebel extended. I used this guide to add the Field-type to the Core database. All is well, until I put query: anywhere ...
asontu's user avatar
  • 181
1 vote
1 answer
49 views

Custom TreelistEx field type which displays the Path of selected items [duplicate]

Is there some open-source custom field type for Sitecore which works similar to the TreelistEx field, but displays the paths of the selected items? Or perhaps, is there some way to configure the ...
Matthew Dresser's user avatar
1 vote
1 answer
55 views

Custom hidden field for Sitecore Forms isn't maintaining value on submit

I have a custom hidden field. The model uses a rendering parameter on the page to set the value of the hidden field, and the same form is used on multiple pages which is why I'm using a rendering ...
Erica Stockwell-Alpert's user avatar
1 vote
0 answers
544 views

How to exclude the results based on some templates in Solr/Suggest search?

I have a scenario that, I want to exclude some templates(Items that are based on these templates are need to be excluded) from solr Suggestion/autocomplete results. I did set a context field as ...
Rajasekar's user avatar
  • 692
0 votes
3 answers
70 views

How to update a link field when a drop list item is selected?

Is there a way to dynamically change the value of a Template field in Sitecore based on other template field selected value. For example, let's say we have a template that has the following fields: ...
Akshay D's user avatar
0 votes
2 answers
884 views

Make a field(RTE) disable(readonly) and enable(editable) on toggle of checkbox in Content Editor

I am trying to disable(readonly) and enable a RTE field on toggle of a checkbox in the Content Editor. The John west blogs tells to alter the "renderContentEditor" Pipeline which I guess will not be ...
Amitabh's user avatar
  • 1,066
0 votes
1 answer
614 views

Custom checkbox field for Enum C# Type

My problem: The code in solution contains an Enum type that is used to render some view and needs to be configured for different items. I am looking for a way to create a custom checkbox field to be ...
gringo_dave's user avatar
0 votes
1 answer
131 views

WFFM custom toggle switch [closed]

I am adding toggle switch as a custom field. Toggle.cs (Toggle C# code) public class Toggle: Sitecore.Form.Web.UI.Controls.Checkbox { } public class ToggleField : Sitecore.Forms.Mvc....
user avatar
0 votes
5 answers
45 views

How to create Solr Index custom field mapping with schema configuration?

I am newbie to Solr Index and its custom field mapping in sitecore along with its configuration. I have googled so much but I am got completely confused and unable to start from basic. Please give me ...
Kumari Dimple's user avatar
0 votes
2 answers
203 views

How to get the field value of current item language in Sitecore

I have created a custom Sitecore field from Sitecore.Shell.Applications.ContentEditor.NameLookupValue. But even after changing the language of the item where the custom field is added, context ...
Barada Behura's user avatar
0 votes
1 answer
246 views

How to add custom ribbon button in Experience Editor

I am currently using a custom Ribbon Button which has a command attached to it in the Content editor. I want to create the same ribbon button in experience editor mode and use the same command.
Gautam Aneja's user avatar
0 votes
2 answers
527 views

Sitecore Forms Custom Attribute Not Working in Designer Mode

I have created custom attributes on standard fields by following instructions in this post: Creating custom data attribute for Sitecore form fields E.g., Single line input, multi line input etc. I can ...
SeeSharper's user avatar
0 votes
1 answer
315 views

How to get current content item is using custom field inherit from Sitecore.Shell.Applications.ContentEditor.Text

I created an customfield, the class implemented like below: public class GoogleMapField :Sitecore.Shell.Applications.ContentEditor.Text, IContentField {} In this class I want to get current content ...
Nguyễn Tuyền's user avatar
0 votes
0 answers
33 views

How to update a Multilist Source dynamically based on Selection made from DropDown Field [duplicate]

I have two fields one a Dropdown Field and other a Multilist field. The requirement is, on change of Dropdown field value the Source Tree of Multilist must be updated. I tried creating a custom ...
Sylesh JL's user avatar
  • 179
0 votes
0 answers
49 views

Custom General Link - Sitecore 10.2

I have created the "Custom General Link" field type by duplicating the "General Link," as I have to add one additional control property that is "Telephone". I followed ...
Saket Singh's user avatar
0 votes
0 answers
20 views

FIlter Sitecore Form Dropdown Value based on other dropdown [duplicate]

I have custom drop-down fields that read data from API's. I have lot of records in 1 dropdown around 30k. SO i need to filter dropdown value based on value selected in first dropdown. How to handle ...
mark's user avatar
  • 1
0 votes
2 answers
404 views

How to add css class to custom submit action errors in sitecore forms 10.2

We are using Sitecore 10.2, and we have Sitecore form with custom Submit action 'Validate on submit' when this is valid I redirect the form to success page and when this validation fails we want to ...
Visva Kiruthika Muthuraj's user avatar
0 votes
1 answer
65 views

Enable remove contact and view contact card in list manager (sitecore 10.2)

I'm extending the IServicesConfigurator in order to create custom fields in the list manager contact following : https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-manager/walkthrough--...
Rspace's user avatar
  • 1