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
0
votes
0answers
39 views

Get attached Datasource field value in the rendering template

There is a rendering parameter template Background Properties and it has a field Background Class. Rendering Parameter Template (Background Properties) -Field (Background Class) When rendering ...
1
vote
0answers
33 views

Retrieving treelist selected items in another treelist field

I have two templates (Template1 and Template2) Template1 has a field List1 which is Treelist field type Template1 -List 1 (TreeList field) Template2 has a field List2 which is Treelist field type ...
0
votes
1answer
58 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 ...
1
vote
1answer
47 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 ...
0
votes
0answers
26 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 ...
-1
votes
1answer
28 views

How to give few rendering's data in custom API response

Hi please see the picture below, so that I can tell you the requirement. Now, I have a requirement as, if I see page-1 there is content on this page which is coming from following renderings: Header, ...
2
votes
1answer
91 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 ...
0
votes
1answer
92 views

Not Getting Custom Field value on Custom Form save action in sitecore 9.0.1

I have created a custom field in Sitecore 9.0.1 as conditional rendering having One radio button and based on radio button selection i am showing and hiding the fields which are label and text box. ...
0
votes
1answer
215 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 ...
4
votes
3answers
129 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 ...
2
votes
1answer
228 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>(); ...
2
votes
2answers
106 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....
0
votes
0answers
107 views

How do i create Custom Drop List in WFFM

How do i create a custom Dropdown for WFFM(Sitecore 8.1), i want to have a MvC drop list which is populated from an external service and showed in forms .
0
votes
1answer
62 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....
3
votes
1answer
60 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 ...
2
votes
0answers
106 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 ...
3
votes
1answer
84 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 ...
0
votes
2answers
357 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 ...
4
votes
0answers
261 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 ...
4
votes
1answer
577 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 ...
0
votes
1answer
348 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 ...
1
vote
3answers
339 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 ...
3
votes
1answer
729 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 ...
5
votes
1answer
350 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. ...
1
vote
1answer
422 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....
9
votes
3answers
1k 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 ...
2
votes
0answers
546 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 ...
3
votes
1answer
379 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 ...
1
vote
3answers
1k 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 ?
3
votes
2answers
1k 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] ...
5
votes
1answer
405 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) ...
2
votes
2answers
1k 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 ...
7
votes
2answers
776 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 ...