Copy link to clipboard
Copied
I have a text box (name) and date field (saledate).
My goal is to have Text1 say "E-Signed by JOHN SMITH December 4, 2025"
"E-Signed by (NAME) (SALEDATE)"
This is what I have so far, but I'm unsure how to bring the two fields into this.
I hope this makes sense. Thanks in advance!
Copy link to clipboard
Copied
Try this as custom calculation script of "Text1" field:
var name = this.getField("name").valueAsString;
var date = this.getField("saledate").valueAsString;
if(name && date){
event.value = "E-Signed by "+name+" "+date;}
else
event.value = "";
JavaScript is case-sensitive so make sure field names are correct because "name" and "NAME" is not the same.
Copy link to clipboard
Copied
Try this as custom calculation script of "Text1" field:
var name = this.getField("name").valueAsString;
var date = this.getField("saledate").valueAsString;
if(name && date){
event.value = "E-Signed by "+name+" "+date;}
else
event.value = "";
JavaScript is case-sensitive so make sure field names are correct because "name" and "NAME" is not the same.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more