Page 1 of 1

How to dinamically load image in EditForm on load?

Posted: Fri Dec 25, 2020 8:24 am
by miasoft
I have some image fields on EditForm:
25.12_1.png
I need to load image files on open EditForm - make captcha. How do it? What script insert in Custom field?

Re: How to dinamically load image in EditForm on load?

Posted: Fri Dec 25, 2020 8:53 am
by kev1n
Hi,

Where a the images located (DB / file / URL?)

Re: How to dinamically load image in EditForm on load?

Posted: Fri Dec 25, 2020 11:10 am
by miasoft
kev1n wrote:Hi,
Where a the images located (DB / file / URL?)
simple icon's files in folder \nubuilder4\libs\img

Re: How to dinamically load image in EditForm on load?

Posted: Fri Dec 25, 2020 11:25 am
by kev1n

Code: Select all

$('#object_ID_of_your_picture').attr('src','libs/img/your_pic.png');

Re: How to dinamically load image in EditForm on load?

Posted: Fri Dec 25, 2020 4:06 pm
by miasoft
kev1n wrote:

Code: Select all

$('#object_ID_of_your_picture').attr('src','libs/img/your_pic.png');
Thx, kev1n!
I do it - captcha on change form works fine!