This documentation is archived and is not being maintained.

Script Element

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains a script fragment.






Minimum: 0

Maximum: Unbounded

The following example uses the Script element to contain a script fragment that executes within a view of a list.

   <FieldRef Name="SelectedFlag"/>
   <FieldRef Name="DocIcon"/>
   <FieldRef Name="NameOrTitle"/>
   <FieldRef Name="ImageSize"/>
   <FieldRef Name="FileSizeDisplay"/>
   <FieldRef Name="RequiredField" Explicit="TRUE"/>
    g_RequiredFields[6] = new Array;
    g_RequiredFields[6]["RequiredField"] = true;