Contact

+91.22.61488900

 

 

Synergetics HomeWho We AreWhat We DoOur ApproachTeam

IT Training Services in India

 

 
 

Synergetics IT News Blog - Moss 2007 FAQ - By Mario Fernades

 
   

Moss 2007 FAQ: Enable/ Disable fields with selection of radio button in Moss 2007

By Mario Fernandes

 

 

Query by Biplab Mitra: 

I need some help from you regarding MOSS.

I need to enable/disable some fields with the selection of radio buttons.

How can I add JavaScript to the fields in the list? As I am unable to get the field ID.

Even I need to add some logic for calculating some fields with the selection of the radio buttons.

Solution by Mario Fernandes

  • Open the List.  ( I am assuming its Employee list.)
     

  • Pick any one record & go in edit mode.
     

  • Right click on the page & View Source
     

  • Search for <form element  - note down the “name” value
     

  • Search for the field you wish to make read only say “EmployeeName”. Check <input element next to it – note down the “name” value
     

  • Copy the URL of this EditForm.aspx
     

  • Open Sharepoint Designer, File à Open à paste the url you copied

  • Go to code window.
     

  • Locate <IMG src="/_layouts/images/blank.gif"
     

  • Just after this <Img> element put this code  ---      document.formname.inputfieldname
     

  • <script type="text/javascript" language="javascript">document.aspnetForm.ctl00$m$g_bf411c27_b525_4df6_a7f3_a64ee5b5aef3$ctl00$ctl04$
    ctl01$ctl00$ctl00$ctl04$ctl00$ctl00$TextField.disabled="true";</script>

     

  • Save the form. Refresh the page.
     

  • There you go.

.

 

New Technology Adoption Strategy

Microsoft Exchange Server 2010

Technology Direction 2010

SAP Workflow Training

Microsoft Application Virtualization

Agile Methodologies

Oracle 10G SQL

ASP .Net Training Video

ASP .Net Training

Synergetics IT Training Services Team

Innerworkings - India Partner

SQL Server Training in India

SilverLight 3.0 Training in India

Microsoft Training

Best .net Training in India

Visual Studio Team System (VSTS) 2010

Cloud Computing Training

ASP .NET & SQL Server Free Workshop

SQL Server 2008 Training

.NET 3.5 & 4.0 Training

SQL Server 2005 Training

Microsoft Sharepoint Server 2010 Training

Synergetics India AJAX Training

SQL Server & .NET Jobs in Mumbai

SilverLight 4.0 Training Courses

Oracle 10G SQL Training Courses

Core JAVA in Mumbai

MOSS 2010 Training

Java DataBase Connectivity

SQL Server Training Courses

 
 

 

Synergetics is Awarded as the "Best. NET Training Service Provider" by Microsoft.

SQL Server Training Courses | ASP .NET Training | IT Consultant | Microsoft Training

Copyright © 2011 Synergetics IT Training Services India Pvt Ltd.