Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

How to dinamically load image in EditForm on load?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

How to dinamically load image in EditForm on load?

Unread post 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?
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

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

Unread post by kev1n »

Hi,

Where a the images located (DB / file / URL?)
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

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

Unread post by miasoft »

kev1n wrote:Hi,
Where a the images located (DB / file / URL?)
simple icon's files in folder \nubuilder4\libs\img
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

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

Unread post by kev1n »

Code: Select all

$('#object_ID_of_your_picture').attr('src','libs/img/your_pic.png');
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

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

Unread post 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!
Wbr, miasoft.
Post Reply