Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 27, 2024 18:05
Show Gist options
  • Save bjoerntx/09c533532cc2298265478c354a0c34f9 to your computer and use it in GitHub Desktop.
Save bjoerntx/09c533532cc2298265478c354a0c34f9 to your computer and use it in GitHub Desktop.
saveValues() {
var documentValidated = TXDocumentViewer.forms.validate();
if (!documentValidated) {
alert('Document is not valid!');
return;
}
var formFieldValues = TXDocumentViewer.forms.getValues();
console.log(formFieldValues);
this.http.post('/document/saveValues', formFieldValues).subscribe(
(result) => {
console.log(result);
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment