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

Question

Question

Is there a way to set one variable to another with Javascript?

asked on September 25, 2019

It is virtually the same thing as using the Default field to set it to another variable, but how would you do this with JavaScript?

0 0

Replies

replied on September 25, 2019

Hi Justin

In the Forms BPL is a file called CSS/Javascript/Formula Examples

I highly recommend you load it up as a business process and then run the form as it provides many good examples of coding for different effects.

1 0
replied on September 30, 2019

You use the val() function to get or set field values in Javascript.

$(document).ready(function () {
  var myValue = $('.ClassNameOfFieldA input').val(); 
  $('.ClassNameOfFieldB input').val(myValue);
});

 

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

Sign in to reply to this post.