This topic is locked
[SOLVED]

 How to create a thumbnail in lookup wizard

1/3/2021 4:22:26 PM
PHPRunner General questions
ruzgarajans author

hi,

(sorry little speak english)

I m use lookup wizard field and autofill.

the picture does not show. link is showing.

I want to show a picture while adding.

no need for file path...


H
Hd_Mersintarim 1/4/2021

resimleri databasede mi yoksa bir klasorde mi tutuyorsunuz.

ruzgarajans author 1/6/2021

hi,

I get it now

Image upload adjustment is required...

(I worked with sample field names. I did not change)

thank you very much admin and;

teşekkürler Hd_Mersintarim
1-first setting:

rename uploaded file

2-second setting:

how to enhance lookup wizard displaying an image


ruzgarajans author 1/6/2021

How does it work in detail popup on grid?

not working on popup

$("[id^=value_one_cikan_aday_id_1]").on("change", function(){

var $field=$("#lookup_image");[/color]
$field.hide();

$.ajax({

type: 'POST',

dataType: 'json',

data: {value: this.value},

success: function(data){

if (data.success) {

$field.attr("src", data.src);

$field.attr("style", "max-width:200px;");

//uncomment previous line to set up max width of the image

$field.show();

}

}

});

}).change();