You are viewing limited content. For full access, please sign in.

Question

Question

Javascript After method not working in Save to Repository step

asked on August 10, 2020

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 ? 

 

0 0

Replies

replied on August 10, 2020

What version of Forms are you using?

0 0
replied on August 11, 2020 Show version history

Currently on Forms 10.4.2

 

EDIT: Today we updated to 10.4.4 Issue still exists.

0 0
replied on September 23, 2020

Can you open a support case with exported business process that can reproduce the issue? We used same function in custom JS and can't reproduce it. You can go to https://support.laserfiche.com/ and click "Live Chat" on the top navigation. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.