7.3a
On quoteitems summary page, when the user selects a product. if productid is a certain value a checkbox on the summary must be checked. I'm trying to do this using the client side API.
It doesn't work, the product submit method is breaking it.
jscript:ProdChanged();EntryForm.submit(); This happens onchange of product. Without it the screen will not fetch the list price for the selected product.
Because of this the when I try to set crm('quit_sale').val('Y'); it checks, but then the submit occurs and wipes it out. The check is not persisted through the refresh.
If I try to set a default value based on the product ID being said value it doesn't seem to work either. The checkbox is never checked. I can check it using the code above but every refresh unchecks it.
If tried this on the CreateScript:
var prodid=Values('quit_productid');if(prodid=='113'||prodid=='114'||prodid=='114'||prodid=='116'||prodid=='117'){DefaultValue='Y';ReadOnly=true;}
I've tried on changescript on the product selection
jscript : ProdChanged();
EntryForm.submit();
if (crm('quit_productid').value()) {
var prodid = crm('quit_productid').value();
if (prodid == '113' || prodid == '114' || prodid == '114' || prodid == '116' || prodid == '117') {
crm('quit_sale').val('Y');
}
}
This will check the box then the postback removes the check.
Any help is greatly appreciated.