4

It is definitely possible, and there is a number of ways of how you can do it: Create custom field types for both of the fields and perform postback every time value is changed in current car field. This approach is the heaviest one: you have to write quite a lot of code. On the other hand, you can get it done with pure server side (or also it's possible to ...


4

You would have to write a custom control to make that happen. Another approach could be to change the value after selection with javascript/jQuery. For example, change the date to Today for anything <= today, and tomorrow for anything > today.


3

Document libraries and lists have different options available w.r.t to the multiple lines of text column type. In document libraries, when you create a new column of type Multiple Lines of Text, you get the option to select the ‘Allow unlimited length in document libraries’ checkbox. But, In lists, this option does not exist. A multi line text field is ...


3

If you want the field to appear as read-only or display than you can change its SPControlMode to Display MyCode.ControlMode = SPControlMode.Display


2

You could do this with script that is applied selectively based on column name or some other defining characteristic. The trick would be to hide the existing picker (I agree that it feels clunky, though it works OK with the hierarchical data), pull the terms from the store and display them in a select. On selection from the dropdown, you'd populate the ...


2

I faced same issue now. Try to move your code: MyID.ControlMode=SPControlMode.Display; to OnInit or OnLoad event. Page_Load is too far in page live cycle when controls in FormField are already rendered.


2

Old post, but better answer. It seems like you are converting a paper form into an Infopath form -- this paper form had a box asking 'How many widgets?' and you want the value entered there to dictate how many serial numbers you offer the user... Why not do it this way -- use a repeating table or repeating section to gather any number of serial numbers... ...


2

Problem is in method "onBeforeRendering", right after changing timezone of date, there is an used object named MutableDateTime, which kills all timezone settings. So this object returns correct time, but displays incorrect one


1

Why are you not using ASP.NET Drop down list control instead? You can use _spBodyOnLoadFunctionNames.push("myCustomFunctionName"); to make your JavaScript function run on load.


1

You can call javascript from code behind as: Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true); where MyFunction() is your javascript function http://www.codeproject.com/Questions/443131/Call-to-javascript-Function-from-code-behind-using


1

i created a scriptblock which allows you to hide specific fields based on its internal fieldnames. You simply call the function "hideField" with the internal name of the field you want to hide. In my case AssignedTo and DueDate. The fields are still accessible from code behind but are not visible for the user. <script language="javascript" type="text/...


1

Alex, You should set the control as follow: MyCustomField.ItemFieldValue = "1"; MyCustomField.Field.DefaultValue = "1"; Where 1 is for true, and 0 is for false


1

The value displayed here comes from the "Name" (or "PreferredName") property for the user in the User Profile Service Application. If you are syncing with Active Directory (or another directory service) the value comes from there. In order to change how it is displayed, you would need to change the value in the directory service and then run a full profile ...


1

Marcin, You can do this by inducing JavaScript on your NewForm.aspx page, as described in the following article: http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&ListId={72C1C85B-1D2D-4A4A-90DE-CA74A7808184}&pID=740 EDIT If you want filtered lookup drop downs or Cascaded lookup drop downs, you can have a look at: SolidQ Filtered ...


1

In both SharePoint 2007 and in SharePoint 2010, you can use the PeopleEditor (People Picker) control from SharePoint. You simply refer to it like any other custom ASP.NET control. For 2007, there is an MSDN blog about it here: http://blogs.msdn.com/b/ekraus/archive/2008/02/06/use-peopleeditor-people-picker-in-sharepoint-custom-app-dev.aspx. For 2010, you ...


1

I suggest the jQuery route. You are correc that there is not a good cross browser editor for your situation. Be aware that even with jQuery or other non-SharePoint specific browser based web editors there is still a good chance that the solution will not be completely cross browser compatible.


1

glad you solved the problem, by documentation sharepoint should look for sub-directories but there is some bugs related to it, similar problem on stack overflow https://stackoverflow.com/questions/196115/sharepoint-does-not-find-my-custom-renderingtemplate


1

Ok, I've solved it. I am not sure why, but when I use User1 account, I need to explicitly specify the fields I want to get when I am retrieving SPItem object. So, previously I have had instantiated the item object with the following line: this.item = this.list.Items.GetItemById(Convert.ToInt32(itemId, CultureInfo.InvariantCulture)); But, in order to have ...


1

On a standard list form if an attachment with the same name was added multiple times. If the item will be stored the form throws an exception, that one of the attachments was added multiple time and prevent from adding the item. In your case you override this exception, which causes that no attachments are available when you try to store the list item. To ...


Only top voted, non community-wiki answers of a minimum length are eligible