From this discussion group:
<script language="javascript">
<!--
document.forms('OWSForm').elements('urn:schemas-microsoft-com:office:office#
YOURFIELDNAMEHERE').disabled=true;
document.forms('OWSForm').elements('urn:schemas-microsoft-com:office:office#
YOUROTHERFIELDNAMEHERE').disabled=true;
//-->
</script>
One caveat: If the FIRST field on the form is disabled, you'll get an error about not being able to set the focus to it.
miercuri, aprilie 18, 2007
Some better Javascript for Editforms
Etichete: Edit, FrontPage, JavaScript, List, SharePoint
Abonați-vă la:
Postare comentarii (Atom)
Despre mine
- Ophogus G. Marmphik
- Timi-Ostravia, Republic of Czedvia, Bulgaria
- I make web applications. The tools I use are many and far between. I have been maining to learn Ruby and Python, and Perl. These tools are all like Lego to me. They can all be make to build things and have their strengths and weakest.
Niciun comentariu:
Trimiteți un comentariu