function postsubmit(){
if ( this.status == 200 ) {
+ document.querySelector('#report input[name="tid"]').setAttribute('value', this.response);
console.log('successful auto submit of form data');
button.setAttribute('style', 'display: none;');
} else {
function formencode(fd){
var send;
- send='autosubmit=false';
+ send='autosubmit=true';
for (var tup of fd.entries()){
send += '&' + encodeURIComponent(tup[0]) + '=' + encodeURIComponent(tup[1]);
}