This topic is locked
[SOLVED]

 show image in an add

12/28/2018 11:19:58 AM
PHPRunner General questions
A
ayctech author

Hi, I would like to know how I could do so that the image shows with a autofill, when I want to add a detail

HJB 12/28/2018

For inspiration purposes only, JAVASCRIPT ONLOAD event autofill oriented code as below instead of the built-in AUTOFILL feature.
Excerpt ex http://asprunner.com/forums/topic/24597-auto-fill-based-on-2-other-fields/
If you want to autofill field3 on the fly, use javascript onload instead
var ctrlField1 = Runner.getControl(pageid, 'field1');

var ctrlField2 = Runner.getControl(pageid, 'field2');

var ctrlField3 = Runner.getControl(pageid, 'field3');
function func() {

ctrlField3.setValue(ctrlField1.getValue() + ctrlField2.getValue());

};

ctrlField2.on('keyup', func);

ctrlField3.on('keyup', func);

A
ayctech author 12/28/2018

The autocomplete works for me, the problem is that it does not show me the image, only in the list shows the image and not in an add

HJB 12/28/2018



The autocomplete works for me, the problem is that it does not show me the image, only in the list shows the image and not in an add



Sure, you want to get it displayed "... on the fly ...", say, to see it immediately BEFORE saving the ADD,

that's why the JAVA ONLOAD script, doing such "... on the fly ..." display had been sent to you ...

A
ayctech author 12/28/2018

Do not explain me well, the form does not understand that the field of the photo should show an image. only in a list it becomes an image, what I need is that in the form add.php, load the image with the url that I assigned with the autofill, if I do it with java it would give the same as doing it with the autofill..Any idea how to do it?

lefty 12/29/2018



Do not explain me well, the form does not understand that the field of the photo should show an image. only in a list it becomes an image, what I need is that in the form add.php, load the image with the url that I assigned with the autofill, if I do it with java it would give the same as doing it with the autofill..Any idea how to do it?


Here is a start . Click here

A
ayctech author 12/29/2018

Thanks, I'll try

A
ayctech author 1/2/2019

it works, thank you very much