Remove Field from Form

I would like to be able to remove the submit button from my Forms (created in LiveCycle Designer). I currently attempt to do this by using

pdfFormEditor.RemoveField(fieldName);

but this does not remove the button from the page of the form.

When can this be resolved?

Thank you for your assistance in this issue.

Hi,

I have tested this and was unable to reproduce the error. I can remove the button from my form using the RemoveField function. Can you please provide the form that is causing the problem and the code that you are using to remove the button.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

(this is the 4th time I try to Reply to this post...I hope it finally works. the new UI seems to have a bug.)

The form you can test with is on another post (since I can no longer attach files to posts since the new UI): https://forum.aspose.com/t/132621

The source I'm using is:

FormEditor pdfFormEditor = new FormEditor(formFile,tempReadOnlyFile);

foreach (string fieldName in fieldNames)

{

// Make the form read only by removing the Save Changes button

if (fieldName.Contains(SAVE_CHANGES_BUTTON_FIELD) == true)

{

// Remove doesn't seem to currently be working, so disable Save Changes button

// by setting the submit URL to empty string.

pdfFormEditor.SetSubmitUrl(fieldName, "");

pdfFormEditor.RemoveField(fieldName);

}

}

pdfFormEditor.Save();

Hi,

I have reproduced the error with the from that you provided. I will discuss this with the developers and let you know.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

Hi,

It appears that the form was created using Adobe LiveCycle Designer 8.0 which is currently not supported by the RemoveField function. Our developers are working hard on this issue and will have the solution in about two weeks time.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html