OnlyOffice Connection Issues with Moodle

onlyoffice-documentserver version: 9.1.0-168
Moodle version: 4.5.5+
mod_onlyofficeeditor plugin version: v6.1.0
assignsubmission_onlyoffice plugin version: v4.1.0

OnlyOffice server and Moodle installed on separate Ubuntu 22.04 containers.

I followed this installation guide:

Browser: Brave v1.86.142

Additional information:
I designed the PDF form in OnlyOffice DocSpace before I created the course, so to avoid remaking it in the editor for the assignment, I replaced the default pdf template with mine.

The template that was replaced can be found at this location:
/var/www/html/moodle/mod/assign/submission/onlyoffice/newdocs/en-US/new.pdf

I am experiencing two issues:

  1. I have added two roles in the OnlyOffice form: “Student” and “Teacher”, and assigned those roles to certain fields. I have the same two roles in Moodle setup and assigned. Every time a student in Moodle accesses the assignment, they are able to fill in all fields regardless of role. So the roles are not communicating between Moodle and OnlyOffice, or I have not configured them properly. I know some connection exists because I can see the Moodle user’s name inside the OnlyOffice editor while a student is filling out the form (I will highlight this in my video below).

  2. There are macros in the OnlyOffice form that automatically sets a date field to the current date so long as the date field is already empty, as well as updates another date field to be 30 days after the initial date field. These macros work fine while the teacher is creating the assignment, but no longer function when the student opens the assignment (will be highlighted in my video).

Here is the code for the initial date setter macro:
(function() {
let doc = Api.GetDocument();
let forms = doc.GetAllForms();
let today = new Date();

forms.forEach((form) => {
    if (form.GetFormKey() === 'Startdate' && typeof form.GetDate() === 'undefined') {
        form.SetTime(today.getTime());
    }
});

})();

Here is the code for the macro that adds 30 days to the initial date:
(function() {
let doc = Api.GetDocument();
let forms = doc.GetAllForms();
let today = new Date();
let later = new Date(today);
later.setDate(today.getDate() + 30);

forms.forEach((form) => {
    if (form.GetFormKey() === 'End Date' && typeof form.GetDate() === 'undefined') {
        form.SetTime(later.getTime());
    }
});

})();

Here is a short video that you can see the issues I am running into:

I think I may be missing come config file that communicates between Moodle and OnlyOffice and perhaps one that deals with Macro permissions when editing as a student. Any help is greatly appreciated!

Hello @TKJonesy
I do believe that you previously posted the same request in our discord server. Please provide us with requested information:

Could you please show us the entire scenario step-by-step? Please create new course and add a form with necessary test fields> set up a student account> open another browser and go to the form via this student account. We will check it out.

P.S. Please do not post the same request in different communication channels.

Here is the requested video:

Hello @TKJonesy
Thank you for the provided video! We’re checking the situation.

Dear @TKJonesy
Thank you for the provided data!
We have added two separate cases to internal tracksystems ( 80243 and 80244) and we have started working on them.
We will update this thread once we have something to share.