1
0
-1

Hi,

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?

 

Cheers

Mike Chen

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      Hi Mike,

      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;

        CommentAdd your comment...