Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can use this as a calculation script:
( See attachment, I edited the checkboxes and the dropdown export values.)
if (this.getField("Check Box1").value != "Off") {v1 = this.getField("Check Box1").value + "-";}
else {v1 = "";}
if (this.getField("Check Box2").value != "Off") {v2 = this.getField("Check Box2").value + "-";}
else {v2 = "";}
if (this.getField("Data_Type").value != this.getField("Data_Type").defaultValue) {v3 = this.getField("Data_Type").value + "-";}
else {v3 = "";}
if (v1 == "" && v2 == "" && v3 == "") {event.target.value = "";}
else {event.target.value = v1 + v2 + v3 + (Math.floor(Math.random()*Math.pow(10,10)));}
Copy link to clipboard
Copied
Search "Options tab for form field properties : Drop-down and list box" in this page: https://helpx.adobe.com/acrobat/using/pdf-form-field-properties.html
Copy link to clipboard
Copied
You can use this as a calculation script:
( See attachment, I edited the checkboxes and the dropdown export values.)
if (this.getField("Check Box1").value != "Off") {v1 = this.getField("Check Box1").value + "-";}
else {v1 = "";}
if (this.getField("Check Box2").value != "Off") {v2 = this.getField("Check Box2").value + "-";}
else {v2 = "";}
if (this.getField("Data_Type").value != this.getField("Data_Type").defaultValue) {v3 = this.getField("Data_Type").value + "-";}
else {v3 = "";}
if (v1 == "" && v2 == "" && v3 == "") {event.target.value = "";}
else {event.target.value = v1 + v2 + v3 + (Math.floor(Math.random()*Math.pow(10,10)));}
Copy link to clipboard
Copied
Thank you so much, As i expected its working perfectly.
Copy link to clipboard
Copied
Can you please advice me about how to change dropdown export values.
Copy link to clipboard
Copied
Search "Options tab for form field properties : Drop-down and list box" in this page: https://helpx.adobe.com/acrobat/using/pdf-form-field-properties.html
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more