Display the attachments as image using jquery script. The attachments are images that have been uploaded. The attachments are still links but the image is displayed on the form in read mode.
Example
Code
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#idAttachmentsTable tr td span a').each(function() {
$(this).text('');
var a_href = $(this).attr('href');
$(this).append("<img alt='' src='" + a_href + "' width=80% />");
});
});
</script>
Results
No comments:
Post a Comment