Attachments
Is there any way to interact with with attachments field.
For example
can you check if the attachments fields is null?
can you read the file name of the attachment?
can you prevent the attachments from disappearing when someone fails a field requirement?
just wondering.
thanks
matt
For example
can you check if the attachments fields is null?
can you read the file name of the attachment?
can you prevent the attachments from disappearing when someone fails a field requirement?
just wondering.
thanks
matt
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Yes, you can control the Attachments field via JavaScript.
can you check if the attachments fields is null?
Yes, you can retrieve the attachments table and check whether it contains rows or not via JavaScript
can you read the file name of the attachment?
Yes
can you prevent the attachments from disappearing when someone fails a field requirement?
Unfortunately, not. Files are lost after postback if they were not loaded to the server.
can you check if the attachments fields is null?
Yes, you can retrieve the attachments table and check whether it contains rows or not via JavaScript
can you read the file name of the attachment?
Yes
can you prevent the attachments from disappearing when someone fails a field requirement?
Unfortunately, not. Files are lost after postback if they were not loaded to the server.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Please, use the code below:
Code: Select all
//first attachment
var filename1 = $('#idAttachmentsTable tr td.ms-vb').eq(0).text();
//second attachment
var filename2 = $('#idAttachmentsTable tr td.ms-vb').eq(1).text();
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests