Use the <attachment> tag to provide a widget for attaching files to a record.
Use this tag:
Available attributes:
Attribute | Type | Mandatory | Description | |
---|---|---|---|---|
recordId | String | N | Specify the ID of the record to bind it with the attachment widget.
| |
tableName | String | N | Specify the name of the table that has the record the tag is bound to. | |
isReadOnly | Boolean | N | Set the value to true to disable adding files. The default value is false. |
Example:
<attachment tableName={data.table_name} recordId={data.record_id}></attachment> |
The template above adds the following element to the page: