Skip to main content
September 20, 2016
Answered

After Clicking Command Button, User Cannot Edit Form

  • September 20, 2016
  • 1 reply
  • 464 views

This form has a command button on Page 5 that duplicates the page: http://pardons.delaware.gov/pdfs/pard_app.pdf

If the user executes this command button, and then closes and re-opens the form, the user is no longer able to add or edit anything in the form. Instead, the user gets an error message, which says “This document enabled extended features in Adobe Acrobat Reader DC. The document has been changed since it was created and use of extended features is no longer available.  Please contact the author for the original version of this document.”  Is there a way to fix this problem?  Thanks.

FYI, the JavaScript for the command button is as follows:

var fld;

var arrayFields = new Array(this.numFields);

with (this) { // default object is 'this'

//for (var k = numFields; k; k--) {

for (var k=0; k<numFields; k++) {

fld = getField(getNthFieldName(k));

if (fld.name == 'txtCrimSumOff_Cnt') {

if (fld.value == 1){

fld.value=this.pageNum+1;

}else{

fld.value=fld.value+1;

}

var page_start=fld.value;

}

}

}

//spawn from named template

var t = this.templates

var strName='CrimSumOff';

for ( var i=0; i < t.length; i++){

if(t.name.indexOf(strName)!=-1){

var myPage=t.spawn(page_start, true, false); //set second opt to false to preserve filenames

// Get the field name prefix that Acrobat automatically adds to the new fields

var f_prefix = "P" + (page_start) + '.'+strName + '1';

// Reset the newly created fields

this.resetForm([f_prefix]);

// Go to the new page

this.pageNum = page_start;

}

}

This topic has been closed for replies.
Correct answer George_Johnson

Yes. If you don't have the original, non-enabled version, you can open the enabled version in Acrobat and select: File > Save a Copy

This will create a non-enabled version. Note that it doesn't automatically open in Acrobat when you do this.

1 reply

Inspiring
September 20, 2016

If this form needs to work with Reader, you should not Reader-enable it, with Acrobat at least. The template spawning won't work with Reader versions prior to version 11, and Reader 11 and DC don't need the form to be Reader-enabled in order to spawn the template and save.

September 20, 2016

George, thanks so much for the response.  So, you're just saying that it should not be saved in a reader-enabled format?  How do I change that on Acrobat DC?

George_JohnsonCorrect answer
Inspiring
September 20, 2016

Yes. If you don't have the original, non-enabled version, you can open the enabled version in Acrobat and select: File > Save a Copy

This will create a non-enabled version. Note that it doesn't automatically open in Acrobat when you do this.