I need to modify my code for marking fields on a PDF as read-only so that 3 specific fields remain editable if they are empty. How can I adjust the code to exclude these 3 fields if they contain no input?
var currentPageNum = event.target.page;
for (var i = 0; i < this.numFields; i++){
var currentField = this.getField(this.getNthFieldName(i));
if (GetFirstFieldPage(currentField) <= currentPageNum && currentField.value == ""){
currentField.readonly = false;
currentField.display = display.visible;
}
}