How can input from a Google Sheets sidebar be transmitted to server-side code?

I am developing a sidebar interface in Google Sheets to show and modify document properties. I successfully display the property information and set up text fields for user input within the sidebar, yet I am encountering issues with sending this data back to my server-side script through a handler. Could someone explain how interactive sidebar dialogs are properly supported in Google Sheets and what techniques can be used to transmit user input to the server in this context?

In my experience, the communication between the sidebar UI and the server script is best handled through the google.script.run API. When a user submits data, you can trigger a client-side function that calls a corresponding server-side function, directly passing any values as parameters. This technique not only allows for interactive communication but also simplifies error handling and responses from the server. Making sure the proper parameters are used and that the client script is properly linked to the event handler has been crucial in my projects.