Hello everyone,
I now need to add a new button to the attachment form to upload the file. The difference between this button and the original “New” button is that uploading an attachment using this button will automatically assign a default value to a field in the DocuRef table, and only users with specific permissions can use this button.

This is where I got stuck: How can I determine which button a file was uploaded through and assign a value to this field in the DocuRef table?
