In the general options of the attachment widget, we have an field "Attachment Description". Current it allows only fixed text typed in.
If I want the "Attachment Description" to be read from a data field, is it possible?
You can change the 'attachmentDescription' property on the item. I put this code in the change rule of a text field to change the description to the value of the text field:
var attachment = Form.getItemFromPath('data.attachmentfield'); attachment.properties.attachmentDescription = data.textField;