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

Question

Question

field contents to stay after submit

asked on October 31, 2019

I am using Java to build the contents of a multi line field.  I can see the correct contents on the user form used for submission.  But, after click the submit button the contents are blank.  I am looking in the variables on the monitor tab in forms.  As well, when I open the next task the field is empty, and after Submit on the download/print/email page field is blank.

what am I doing wrong.

thanks in advance

 

0 0

Replies

replied on October 31, 2019

Looks like you have an issue in that the value is being evaluated only when loading. Add some code like the following to watch for changes. I do see that you mention that there are other fields that will also be included. Add the field number in the $('#Field95').change so that if you were also adding Field94 it would look like $('#Field95, #Field94').change(... and then add the code to construct the variable V8820 before assigning it to make the coding easier and in one place.

$(document).ready(function(){
	$('#Field95').change(function(){
		// added Field 95 10/28/19
		if( $('#Field95').val() != 0 ) {
			var X =$('#Field95').val();
			V8820 = "ECEAP (8820)    %" + X + Nline;
		}

		$('#Field96').val(V8820);
		// Field 96 is the multiline text box.
		/// there are many other lines and variables added to the value
	});
});

 

0 0
replied on November 1, 2019

If you could provide the JavaScript you are using to build the multi-line field that would help in identifying any potential issues.

Some additional questions:

  1. Is the field read-only?
  2. Are you triggering a .change() event after you set the value?
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.