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

Question

Question

Calculated Field in Forms Shows Blank on Approve

asked on March 29, 2017

I have a field in Forms (Grand Total) that has a calculation in it.  It is being pre-filled by Workflow on submission, however, then it is routed to an approver who may need to make changes to the amounts that feed into this field.  I placed the calculation there thinking that if they made a change to one of the related fields, Forms would calculate the new Grand Total.  This is working when you look at the form and click the approval button; however, if you then look at the form in instance monitoring, the Grand Total field shows blank.  This is causing the next step of my process to suspend, as it is trying to save to the repository and Grand Total should be feeding into a required field in the template, but the value is blank.  I've run out of ideas to try to get this working.  I've included pictures.  Does anyone have any suggestions?

Thanks!

Here is how the form looks before the approver hits the submit button  (Grand Total recalculated properly):

 

Here is how the form appears once the approver submits it (looking through instance monitoring):

Grand Total Pay is now blank.

0 0

Answer

SELECTED ANSWER
replied on April 2, 2017

Can't say for certain, but my guess is that the field is set as read only on the layout page, which can prevent changes from saving.  It's rather annoying that the user can see the changes, but they don't save.  In my forms I've had to work around this by leaving the form editable in the layout page, and setting it as read only via Javascript.

$('.yourFieldCSSClassName input').attr('readonly', 'true');

 

0 0

Replies

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

Sign in to reply to this post.