Assign image
Posted: Fri Apr 27, 2018 6:55 am
My requirement is to load a different image to an Object of Type Image when a form is opened.
I thought I could to this by JavaScript and triedbut the image is not changed.
I thought I could to this by JavaScript and tried
Code: Select all
nuAttachImage('logo', 'imgProject1');
Code: Select all
if (nuFormType() == 'edit') {
switch (project) {
case 'project1':
img = "imgProject1";
break;
case 'project2':
img = "imgProject2";
break;
case 'project3':
img = "imgProject3";
break;
}
nuAttachImage('logo', img); ----> not working!
}