Documentserver PDF Form Filling

I am running OnlyOffice documentserver 8.3.3 docker container on an Ubuntu server. I’ve created an embedded PDF editor in a React component and the PDF document loads perfectly. The document is a test PDF document with Form content.
I have created the config based on the API documentation, but the displayed editor does not have the “Complete and submit button” in the toolbar.

Any thoughts on how to get the button in place?

Does this only work with DocSpace?

       const config = {
            "document": {
                "fileType": "pdf",
                "permissions": {
                    "edit": false,
                    "fillForms": true
                },
                "title": "Form",
                "url": this.documentUrl
            },
            "documentType": "pdf",
            editorConfig: {
                callbackUrl: '',
            },
            "events": {
                "onDocumentReady": this.onDocumentReady,
                "onError": this.onError,
                "onRequestSave": this.onRequestSave,
            },
            user: {
                id: 'pdf-form-user',
                name: 'PDF Form User'
            },
        };

Hello @hanland,
Remember to set this parameter as well: Document | ONLYOFFICE

Hi,

Thanks for that, I added;

            editorConfig: {
                callbackUrl: '',
                customization: {
                    autosave: false,
                    submitForm: true // Show Submit button
                },
                user: {
                    id: 'pdf-form-user',
                    name: 'PDF Form User'
                },
            },

Which allowed the button to be displayed.

Where do I specify the callback that will be attached to the Submit Button, i.e. documentation link please.

Is it possible to remove the File, View menu options?

Regards

Hello @hanland

For that you can use onSubmit event with your logic.

You can hide File and View tabs with corresponding parameters:

Please pay attention to this note on the page about extended customization:

On this page you will find the customization parameters available only for the extended white label license of ONLYOFFICE Docs Developer.