Hi Mark,
The sample code below will get you going for hiding each of the desired fields when the form is opened. The implementation is actually very simple. A full explanation of how it works is below the code.
![Image]()
I'm not sure about why the code didn't work with your customized form. I'll do a little bit of research, and follow up with you.
Charles
The sample code below will get you going for hiding each of the desired fields when the form is opened. The implementation is actually very simple. A full explanation of how it works is below the code.
<script type="text/javascript" src="javascript/jquery-1.8.3.js"></script>
<script type="text/javascript" src="javascript/jquery.SPServices-0.7.2.js"></script>
$(document).ready(function() {
$("nobr:contains('Club Billed')").closest("tr").hide();
$("nobr:contains('Coaches Notes')").closest("tr").hide();
//repeat for other fields
});
Below is a snippet of code from the "NewForm.aspx" file of an abbreviated "Participant" list I created. Notice that the "Club Billed" text, which is the display name of that list field, is within the HTML "<nobr>" (i.e. "No Break") tag. We can use jQuery to find the "<nobr>" tag that contains a specified text string. Using the "chaining" feature of jQuery, within the same line of code, we can also tell jQuery to find the closest "<tr>" (i.e "Table Row") HTML tag, and then to hide that table row. And since that table row contains the list field, we end up hiding that list field.I'm not sure about why the code didn't work with your customized form. I'll do a little bit of research, and follow up with you.
Charles