Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

LeslieC

@LeslieC
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SharePoint Designer 2010 - Disable Textbox when Checkbox = True on EditForm.aspx
    L LeslieC

    I'm using the following script (found on line) to disable a multi-line text box form field control on a custom EditForm.aspx page using SharePoint Designer:

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type="text/javascript">

    $(document).ready(function() {
    // add change handler
    $("input[title='chkBox']").change(function() {
    MasterSelectChange();
    });
    // call the change function to set up form for first display:
    MasterSelectChange();
    });

    function MasterSelectChange()
    {
    var thisVal = $("input[ID='chkBox']").val();
    if(thisVal == "True")
    {
    $("select[ID='Comments']").enabled="True";
    }
    else
    {
    $("select[ID='Comments']").enabled="False";
    }
    }
    </script>

    I don't get an error and can't figure out why it isn't working. Does anyone have a similar solution or see why this script won't work?

    Thanks!

    SharePoint javascript sharepoint com tools help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups