Copy link to clipboard
Copied
This should be pretty straight forward I think but I'm having a difficult time finding the correct answer for what I want.
I have six fields on a PDF form, I want the submit button to remain hidden until all six fields are not blank, then change to visible.
I've tried different IF AND statements and just not getting it to work. Using Adobe Acrobat DC.
Thanks for advice.
Change " " to "" whitout space and change visble to visible.
Copy link to clipboard
Copied
What have you tried?
Copy link to clipboard
Copied
In this one, I wanted a "results" field to display only when all 6 fields were field out. I tried something simliar for the button too. I have this code located in the Custom Calculation Script box in a hidden field since the "results" field has something else in it for displaying results.
var nameData = this.getField("Name").value;
var vehicleData= this.getField("Vehicle").value;
var premiumData = this.getField("Premium Increase").value;
var pmilesData = this.getField("Previous Miles").value;
var cmilesData = this.getField("Current Miles").value;
var dateData = this.getField("Renewal Date").value;
if(nameData != " " && vehicleData != " " && premiumData != " " && pmilesData != " " && cmilesData != " " && dateData != " "){
this.getField("results").display = display.visble;
}
else {
this.getField("results").display = display.hidden;
}
Copy link to clipboard
Copied
Change " " to "" whitout space and change visble to visible.
Copy link to clipboard
Copied
That's what I get for doing this late at night, can't believe I missed visble instead of visible. Thanks Nesa
Copy link to clipboard
Copied
Also, where did you place the code you used?
Copy link to clipboard
Copied
I have this code located in the Custom Calculation Script box in another hidden field.