I have some forms which I'm using javascript to populate a table from a collection of data. However when javascript contains the After Method the Save to Repository Step is suspending without any error messages I can find.
$( document ).ready(function() { updateBillingAmount(); }); function getValueById(id) { var value = null; value = $('input[id="' + id + '"]').val(); if (value == null) { value = $('select[id="' + id + '"]').val(); } if ($('[name=IsLocked]').val() == 'True') { value = $('.ro[id="' + id + '"]').text(); } $("#q2").after("<div> getValueById(" + id + ") == " + value + " </div>"); return value; } function updateBillingAmount() { var monthlyCostField = 'Field44'; var monthlyCost = getValueById( monthlyCostField + '(1)'); var billingInput = $('.billingAmount .ro'); billingInput.text("js set " + monthlyCost); }
When I remove the After method the BillingAmount "Input" is updated, but with it in place the Save to Repository Step is suspending.
Anyone else encountered this or have any ideas to work-around this issue ?