Attachments
Posted by schuess - Feb 26 ’14 at 05:17
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
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
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 JavaScriptcan you read the file name of the attachment?
Yescan 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. -
hpMemberMember for: 7 years 6 months 5 days
How do you read the attachment file name i am trying to send a link to attachment directly in task. thanks in advance!
-
Dmitry KozlovAdminMember for: 8 years 7 months 25 days
[#2]: Please, use the code below:
//first attachment var filename1 = $('#idAttachmentsTable tr td.ms-vb').eq(0).text(); //second attachment var filename2 = $('#idAttachmentsTable tr td.ms-vb').eq(1).text();
-
hpMemberMember for: 7 years 6 months 5 days
Thanks this worked perfectly!