Changes

Jump to: navigation, search
m
Special - Browser Script validation
The following function allows you to check for an already selected value from an existing row when using dynamic rows on multiple sections:
<pre>var saveFunc=saveXML;
saveXML=function() {
if (checkdupeval_Section1() == 0 && checkdupeval_Section2() == 0 && checkdupeval_Section3() == 0) {
return result;
}
</pre>
 
The following allows you to hide the Add Row button for a specific section when the record is in a specific status:
 
<pre>
function onloadfunc() {
<!--@sslogic("@statusid@" = "XXXXX" )--> //Replace XXXXX with the ID of the status in which the button should be hidden
$('#addrowbutton_@section.SECTION.id@').hide(); //Replace SECTION with the section name
<!--@end-->
}
</pre>
 
The following allows you to hide the Delete Row button:
 
<pre>
function onloadfunc() {
$("a[name='@section.SECTION.id@_deletebutton']").remove(); //Replace SECTION with the section name
}
</pre>
Smartstaff
284
edits

Navigation menu