Index: EWD/ewd-fm/modesig.ewd
===================================================================
--- EWD/ewd-fm/modesig.ewd	(revision 1212)
+++ EWD/ewd-fm/modesig.ewd	(revision 1215)
@@ -10,4 +10,8 @@
     };
 SAM.val = function (dd,iens,field,value,name) {
+    // Ignore dd and field; we derive it instead from name
+    // Later versions will dymanically fetch the value of the field to check
+    // from the name of the input element
+    // Value needs to be urlencoded.
 	 var q = 'dd=' + dd + '&iens=' + iens + '&field=' + field + '&value=' + value + '&name=' + name;
     EWD.ajax.getPage({page: 'valfield', targetId: 'testdiv', nvp: q})
@@ -22,5 +26,5 @@
 <form name="form" method="post" action="ewd">
 <label for="esig">Electronic Signature</label>
-<input type="text" name="F200I20_4" value="*" onchange="SAM.val(200,<?= #DUZ ?>,20.4,this.value,this.name)" />
+<input type="text" name="DD200F20_4" value="*" onchange="SAM.val(200,<?= #DUZ ?>,20.4,this.value,this.name)" />
 <input type="submit" name="save" value="Save" action="saveEsig^KBANDemo" nextpage="welcome.ewd" />
 </form>
Index: EWD/ewd-fm/valfield.ewd
===================================================================
--- EWD/ewd-fm/valfield.ewd	(revision 1212)
+++ EWD/ewd-fm/valfield.ewd	(revision 1215)
@@ -8,5 +8,5 @@
  else
  {
- 	document.getElementById("<?= #tmp.name ?>").value = "<?= #tmp.result ?>"
+ 	document.getElementById("<?= #tmp.name ?>").innerHTML = "<?= #tmp.result ?>"
  }
 </script>
