oscar - Aug 4, 2006
could not make it work in wss
Since it doesn't use specialities of SPS, then it should work in wss too.
Couldn't be the right solution to make a cell(row) read only
To. Narendar Kumar: Can you elaborate more? ie. “to make a cell(row) read only”. What do you wish to do? The article only showing how to modify editform and newform aspx - so we can protect uneditable field. If you need to create readonly cell, then other technique applies. So, please elaborate your comment.
Thanks, Dennis, it seems like my desktop-blogger change the quotation marks. I'll fix it.
How can i do this using sharepoint designer 2007
Sharepoint Designer 2007 is the next version of frontpage 2003. Doing above tasks to edit WSS 2.0 - using SD2007 or FP2003 are basically same.
Very cumbersome! The code I came up with was two lines and didn't require amending the existing page. Simply find the existing fieldpost, call .insertAdjacentHTML then (second line) hide the original post. You should also handle any changes to the original field, incase other JS code on the page wants to change that field for some reason.
Marc. I am not arguing your comment - as it was my 2 days expossion to Sharepoint. The idea is, we can always combat the challenge using any ways. Better approach has been implemented in, http://cakriwut.wordpress.com/2006/08/19/autofilled-sharepoints-form/ There you can see, that I already used what you might mean by two lines code.
I have been trying your example many times but couldn't make it work. I always get errors such as “One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again.” I am not sure where to put the and tags. Could you expand Figure 4?
Soujanya: For any list item, there is mandatory field “Created By” and “Modified By”. For your case, I suggest to use “Created By” field. If you want to put it into other “EmpName” field, then; make a calculated field “EmpName” which copies text from “Created By”.
Cakriwut please make a note that I am working in SharePoint 2007 beta version.
There is cake way to make SharePoint fields read only. There's already a tag that does it for you. Look at the tag above Modified Date and Created by Date. This tag already changes edit fields to read only. You simply move the tag up the list as far as you want.
Thanks Guy thats just the trick and so easy, i placed a copys of the tag above and below the fileds i wanted readonly and
Nice trick! Very useful!!! comment: for some reason, the “value="blablalba”” attribute in the input field does not have quotes on my portal. So i modified the value-searching part of the script to: s = InputTag.indexOf(“value=”); e = InputTag.indexOf(“name=”,s+6)-1; var InputValue = InputTag.substr(s+6,e-s-6); now it works correctly.
Hi Soujanya: How did u get the reference to the logged in user name in ur spsfield item is it through =Me if then that gives u only the something like Domain\username how do u get the firstname and lastname of the logged in user
how to make field readonly in when Edit in Datasheet any idea?
Hi, I cannot see my custom form in Sharepoint Designer 2007? - I just see a form with three fields “Column Name 1; Column Name 2 and Column Name 3” How do I view my custom form and its code?
Hi, Since the function in FrontPage 2003 “Customize SharePoint List Form” not is valiable in SharePoint Designer 2007 (not that I've notice anyway) I need to know how to make a field read-only?! My list in SharePoint is a customized list with errends, and when att choose to create a new errend my field “Errendtype” needs to be read-only and with a defualt value.
[…] Making a domain read-only […]
[…] Making a domain read-only […]