Guide on how to hide data based on values in HTML templates.

Guide on how to hide data based on values in HTML templates.

I am amazed that I discovered this after couple of hours of trial and error. Not sure why, but it works.

*[data-hide=" "] {
display:none;
}
*[data-hide="\A0"] {
display:none;
}
<div data-hide="%ItemDescription%" >
%ItemDescription%
</div>
If %ItemDescription% will have empty value in your module then this DIV will receive "display:none" and won't be visible. Both of thees rules need to be present for this to work, I really cant explain why. Maybe someone has more insight. As far as I can see the parameters are never really empty (I wish that was the case), but they will output a single whitespace. 


      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方