It's possible to disable completely the Form Assistant, but there is a way to disable the functionality only for some fields of the form?
To achieve this result we need to manipulate the DOM with JavaScript, in this example we remove the assistant for the fields Contract (contractid) and Contract Line (contractdetailid)
function DisableAssistantFields() { var fields = new Array("contractid", "contractdetailid"); var selector = document.getElementById("ContextSelect"); if (selector != null) { for (var i in fields) { var field = document.getElementById(fields[i] + "_context"); if (field != null) { field.parentNode.removeChild(field); } } selector.onchange(); } }
0 comments:
Post a Comment