вот такое решение...
WebFormHTML -> layoutCheckBox
X++:
// [AGR6988]CUS-Modification on 28.03.2007 by TE-rko added - start
if (this.controlName(fwcb) == 'AGR_EPFarmerRegisteredUsers_InvoicePaym')
#Output(' onclick="InvoicePaym_OnClick()"');
// [AGR6988]CUS-Modification on 28.03.2007 by TE-rko added - end
if (fwcb.value())
#Output(' checked=true ');
#Output(' VALUE=ON ');
[allowedit,mandatory,enabled] = this.getInputModifiers(fwcb);
if ((allowedit == FALSE) ||
(enabled == FALSE))
#Output(' style="border: 0" DISABLED ');
#Output('></td>\n');
// [AGR6988]CUS-Modification on 28.03.2007 by TE-rko added - start
if (this.controlName(fwcb) == 'AGR_EPFarmerRegisteredUsers_InvoicePaym')
{
#Output('<SCRIPT LANGUAGE=javascript>\n');
#Output('function InvoicePaym_OnClick()\n');
#Output('{\n');
#Output('if (document.AGR_EPFarmerUserRegistration.AGR_EPFarmerRegisteredUsers_InvoicePaym.checked == false)\n');
#Output(' { document.AGR_EPFarmerUserRegistration.AgrHomeShopId.value = 1;\n');
#Output(' document.AGR_EPFarmerUserRegistration.AgrHomeShopId.disabled = true; }\n');
#Output('else\n');
#Output(' { document.AGR_EPFarmerUserRegistration.AgrHomeShopId.disabled = false;}\n');
#Output('}\n');
#Output('</SCRIPT>\n');
}
// [AGR6988]CUS-Modification on 28.03.2007 by TE-rko added - end