Questions tagged [field-controls]

Field controls are simple controls on a form or webpart that use a small amount of code to display the two modes of the controls: one for render time, and one for edit time.

Filter by
Sorted by
Tagged with
0 votes
1 answer
98 views

Where is the Web Control for the "Like" Rating?

I am using the following code to display the rating on a publishing page in SharePoint 2016 On-Prem. However, the user would like to use the 'Like' instead of the 'Stars'. Changing the rating ...
  • 1,021
0 votes
2 answers
2k views

Is there a maximum number of text boxes on a form

Is there any limit for the number of control (text boxes) allowed on a form? I have a form with nearly 1000 text boxes and want to be sure InfoPath will allow this many. Thanks
  • 1
0 votes
1 answer
184 views

Custom application page form for content type

Is it possible to copypaste SP field controls from default NewDocSet.aspx to a new custom application page? Or I need to recreate all input controlls manually?
0 votes
2 answers
377 views

Is it possible to fire a JavaScript function on a SharePoint Control in Application pages?

I am working on SharePoint Application pages. I have a SharePoint DropDownChoiceField control on the aspx page. The requirement is to auto populate this control at the time of page load. Is there a ...
0 votes
2 answers
3k views

How to Hide fields on customized DispForm.aspx in SharePoint 2010

I want to hide 2 fields on DispForm.aspx of a custom template. Following are the lines of code written for customizing DispForm.aspx using ListFieldIterator SP control. <SharePoint:...
  • 1
0 votes
1 answer
2k views

Set BooleanField Value

I'm trying to set value for BooleanField on my custom NewForm. If I try to do it from codebehind, visually it doesn't change, but when the item will be saved this field will be empty (neither true nor ...
  • 55
0 votes
1 answer
35 views

Sharepoint 2010 reformatting person/group field data

We have a site where our survey for employee nominations and our nominee field uses the Person/Group field to capture the name. The field already has an automatic option that you click to lookup ...
0 votes
1 answer
197 views

How to handle events on SharePoint controls?

I have a custom list in which there is a people picker control and a taxonomy control. I want the taxonomy control to be filled automatically whenever any user is filled in the people control. ...
  • 3,230
2 votes
1 answer
3k views

Accessing values of another field from the newform.aspx in my custom field control UpdateFieldValueInItem() method

I have a custom Sharepoint 2013 field control where when creating a new item in the list, I need to set the value of the custom field based on the value that was entered in another field. For example ...
2 votes
1 answer
705 views

Change Managed Metadata control to a dropdownlist

My client hates the taxonomy picker control in SharePoint and it makes sense for single level termsets to rather have a dropdownlist. Ideally I'd like to use the OOB functionality and if I code ...
  • 988
0 votes
0 answers
541 views

Add or delete rows when a button is clicked in infopath

I have a row with some multiple selection listbox and a dropdown listbox. i need to get a new rows when a button is clicked with that two controls on that new row. How come i achieve this..
  • 133
0 votes
1 answer
384 views

sharepoint 2010 FieldRenderingControl edit mode empty values

I have a list and it has a content type called employee, i would like to render a particular column from the list and its values in a webpart. The column is a multivalue checkbox. It has some values ...
1 vote
2 answers
1k views

How to Disabling SharePoint TextField Control Programmatically?

I'm developing a user control containing textfields bound to my list SPListFields and I'm using this user control twice with two different modes ( Edit or New). In my Edit mode I want to disable a ...
  • 419
3 votes
1 answer
84 views

Is there a IsRequired property on web controls

I'm creating a edit view inwhich a user can create a article/document. In this edit view there are some fields that are required, but I can't see where you define that a field is required. For ...
  • 145
2 votes
1 answer
2k views

How to change ControlMode of SharePoint:FormField control on postback (it changes only after the second postback)

I have a control in my ASPX file and a button to do postback: <SharePoint:FormField ID="MyID" runat="server" FieldName="Title" ControlMode="Edit"/> <asp:Button ID="MyButton" runat="server" ...
  • 1,449
1 vote
2 answers
4k views

Set lookup field value using custom asp.net control on NewForm.aspx

On my custom NewForm.aspx I have got <SharePoint:FormField runat="server" ID="field_Project" ControlMode="New" FieldName="Project" /> Is it possible to replace it with asp net DropDownList ...
  • 303
2 votes
0 answers
291 views

Are Display Form FieldControls used in 2013 Custom Field Types?

When using a Custom Field Type that has a Field Control (provided by FieldRenderingControl), it seems that the Field Control isn't used when rendering data on the Display Form if the SPField.JSLink is ...
  • 4,623
1 vote
1 answer
489 views

Custom Column, Shared Properties and Document Sets

I have created a custom column with SharePoint and it appears to be working nicely. I have created a document library and added to it a document set content type. This document set has the custom ...
  • 468
1 vote
1 answer
388 views

How to use People Picker and True Rich Text, cross browser

I have a list being deployed as part of a site definition. I need to have a custom web-part with controls that are able to fill in list data. SharePoint doesn't have an out of the box people-picker ...
  • 707
0 votes
2 answers
455 views

Cross Browser Rich Text Editor Control

I may be going crazy over here, but I cannot seem to find a Rich Text/HTML control for SharePoint 2010. I have successfully implemented an InputFormTextBox, but this only shows up in IE. I've tried ...
  • 707
0 votes
1 answer
95 views

Reason for Custom Field not getting displayed while adding new Item

I had a custom field deployed in one of server and now am trying it on my VPC which is exact copy of Server, however I added/deployed solution, checked GAC, dll was there, looked at controltemplate ...
0 votes
1 answer
403 views

SharePoint OM wont' read item property

I have a list item with one field Classes which is a multiple choice lookup. I want to implement an ASPX page which contains a ListBox which is filled with values from the Classes field. The following ...
  • 1,410
5 votes
2 answers
1k views

Why does the FileUpload control get bound to the current list item in a custom list EditForm?

I've written a custom edit form for a list which means I lose certain out of the box capabilities such as Attachments as it was part of the out of the box form. The way I have implemented the form is ...
  • 1,471
1 vote
1 answer
355 views

Customizing the New Item Form Controls

I need to, for a calendar control of a date field in the new item form, make only the current day and the day after it to be the only selectable dates in that control. Of course, this changes daily or ...
1 vote
3 answers
2k views

Custom Infopath form - Dynamically create controls dependent on user entry

I am creating an inventory form on InfoPath 2010 to be used in SharePoint 2010. I need to dynamically generate controls (text boxes) for serial numbers which depends on the number entered into a ...
  • 11
0 votes
1 answer
50 views

Adding choices to NewItemForm

I've got an application that contains a custom list. I'm using the default NewItemForms to create new Items. One filed of the form is a select/combobox. now I want to set the choices of the select ...
  • 1,021
0 votes
1 answer
4k views

Maximum limit of characters into rich text box

I am using Sharepoint rich text box control. I would like to know what is the maximum limit of characters that can be entered into rich text box. I am using the sharepoint rich text box control to ...
  • 4,904
1 vote
0 answers
326 views

SPServices to retrieve the last record of repeated section data inside Sharepoint library

I have a Infopath that contain 2 fields which I put it as a repeating section as shown in the picture below (for the time being - please ignore the error) How do I retrieve the last record of a ...
  • 1,063
0 votes
2 answers
1k views

Inherit field editor control from SPUserField

I need to implement AutoComplete feature for People Editor in custom field type derived from SPUserField. To do this, I have to customize both render template and field editor control (and other ...
  • 41
2 votes
1 answer
17k views

How to clear / reset a group of fields in a InfoPath form

Suppose a form have 5 sections where each section contain at least 8 or more fields (can be text field, drop-down list field, date picker field, etc) May I know if it is possible to create a 'Clear' ...
5 votes
1 answer
2k views

FieldName for Field Controls added to a Page Layout in SharePoint Designer 2010

In SharePoint Designer 2010, when I drag a field from the toolbox onto a page layout the generated field control uses the field ID for the FieldName attribute. <PublishingWebControls:RichHtmlField ...
  • 12.4k
5 votes
6 answers
7k views

Is there an autocomplete textbox built into SharePoint 2010?

I looked around for a bit but couldn't find anything. Is there something like this built in?
  • 6,735
4 votes
4 answers
29k views

DateTimeField and timezone conversion problem

It seems that the datetime value which is entered into a DateTimeField is always stored as UTC no matter what timezone is configured for the current user. Only the output on the page is displayed in ...
user avatar
1 vote
1 answer
2k views

What could cause DatePicker to render blank iframe?

I'm witnessing a strange behaviour of the DatePicker control which renders on some machines the expected table with '30 boxes' <IFRAME style="Z-INDEX: 101; POSITION: absolute; WIDTH: 155px;...
1 vote
1 answer
835 views

Sharepoint.WebControls ToolTips

How can I set a tooltip to field controls in edit mode? For instance when a user edit a article, hovering over TextField (or the title of the field) a tooltip with custom text will show. It would ...
  • 7,405
1 vote
3 answers
2k views

Problem making fields 'required' when provisioning using XML

I am provisioning a SharePoint site column using the object model and an xml string as follows: using (SPSite site = new SPSite("http://myserver")) { using (SPWeb web = site....
user avatar
2 votes
1 answer
779 views

Custom Field Control with TreeView with EventHandler issues

I have got a Custom Field Control in SP2007 (inheriting BaseFieldControl) with an ASP.NET TreeView control in the ascx. This works fine with checkboxes enabled so Users can select from the tree. But ...
user avatar