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

Question

Question

How do I recalculate a formula on form open?

asked on November 9, 2017 Show version history

I have a formula that I would like to have recalculate every time the form opens. My field is revisedRevision. I tried:

$('.revisedRevision input').val().change();

but that didn't seem to work.

 

My goal:

0 0

Answer

SELECTED ANSWER
replied on November 10, 2017 Show version history

I ended up doing it through JavaScript.

$(document).ready(function(){
//Creates new value for Revised Revision field
  var rev = $('#q4 input').val();
  var revInteger; 
  revInteger = parseInt(rev);
  revInteger = revInteger + 1;
  rev = revInteger.toString();
  if (rev.length==1){
    rev = 0+rev;
  }
  $('.revisedRevision input').val(rev);
});  //close document.ready

 

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.