I am using the plugin to create comments with kirby. It is only possible to create a comment when you are logged in. If the user has written a comment and clicks on submit, the ID of the user should be written to the comment. Unfortunately it does not work as described below.
Or can one hang in via the controller when the form is submitted? Can you then still submit your own data when creating the comment (the page)?
Currently I use the comments snippets of this plugin at the blogposts. I don’t have any controller there. So it would be completely new. I don’t know to to do it in this case with the plugin to add more data like the id of the user.
Ok, looks like you cannot hook into the processing behavior of the plugin and the custom fields in the docs ToC does not seem to be documented or implemented.
Since you don’t seem to be using the name field otherwise, here is another option:
Overwrite the form snippet, make the name field hidden and add the current user id as value. Then you don’t need the hook and the value will be automatically processed.
The downside of this approach is that the value can be manipulated, unless you validate it with the validate option.