asked on January 9, 2017

Sometime Ago I use this code that I found here at the question, http://answers.laserfiche.com/questions/110714/how-to-insert-a-picture-in-a-form-on-forms#repliesToMain

the code is the following:

 

$(document).ready(function () {

    var iml = ['jpg','jpeg','gif','png'];

    $('.files tbody tr').each(function() {

      if ($(this).find('a').length && $.inArray($(this).find('a').attr('title').match(/\.(\w{3,4})$/)[1],iml)>-1) {

        var ims = $(this).find('a').attr('href'),

            imr = $('<img style="width:300px;" />');

        imr.attr('src',ims);

        $('<tr><td colspan=3>'+imr.prop('outerHTML')+'</td></tr>').insertAfter($(this).find('a').closest('tr'));

      }

    });

});

It works for some time, but apparently it dont work anymore, We try in two diferent installations and server, even in a new installation but still nothing, we try everything we can think of.

Is there a way that some update may have change something on the laserfiche forms server, that this kind of code dont work anymore.

 

I attach the form with modify extension to txt.