Displaying multiple images in a Notes section

Displaying multiple images in a Notes section

Hi, I'm hoping someone may be able to help me with an issue I've run into. 

I have followed the guides provided by Zoho to successfully create a deluge code which displays an image in a note section based on a selection from a dropdown field.

However in my application instead of using a dropdown field, the selection is made from a checkbox field. The idea is that the notes field will show each image as it's selected in the checkbox field i.e. for each Hazard that is selected, the appropriate icon appears to the side. 

Is it possible do to this and if so, what amendments would I need to make to the deluge code to get the desired outcome?

I have put the current working code below:


displayimg = Images[Img_Name == input.Hazard_Type].Image;
if(displayimg != null)
{
displayimg = displayimg.replaceAll("/sharedBy/appLinkName/",zoho.appuri);
displayimg = displayimg.replaceAll("viewLinkName","image_database");
displayimg = displayimg.replaceAll("fieldName","Image");
displayimg = displayimg.replaceAll("<img","<img height=50px Width=50px");
}
input.Hazard_Img = displayimg;

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now