ZML snippets are code blocks that use Zoho Markup Language (ZML) to design and build highly extensive panels within a page. These panels can host a variety of elements such as custom tables, interactive CTAs, and more, arranged using flexible display structures. Further, its contents can be fully styled according to the theme of your application.
Additionally, Deluge scripting can be integrated into ZML snippets to define logic, including validations, data manipulation, and API call triggers, enhancing the interactivity of the panels. For example, you can open a Creator form or trigger a function on the click of an element inside an ZML snippet.
HTML snippets in Zoho Creator are used to build fully customized interactive user interfaces using standard HTML tags and CSS styling. They are primarily used for advanced responsive design requirements (more than what can be achieved using ZML) or when third-party integrations are needed. HTML snippets allow developers to create interactive dashboard UI elements, embed external UI elements like maps, charts, or payment gateways, and apply precise styling control to them.
Integrating Deluge scripting within HTML snippets in Zoho Creator greatly enhances the functionality and interactivity of custom dashboard components. By embedding Deluge code directly into HTML snippets, you can create dynamic, data-driven elements that respond in real-time to user actions. This allows actions such as form submissions, data validations, and API calls to be triggered seamlessly from within a custom-designed interface. For example, clicking a button in an HTML snippet can open a Creator form, update records, or fetch external data without needing to reload the page.
Example - You can create an advanced panel like the one below, with charts, KPI metrics, trends, an iframe that displays a formatted view of the search results, and more.
1.3. Embed
An Embed snippet in Zoho Creator is used to embed external content, such as videos, websites, dashboards, and more, by inserting an <iframe> code. This allows you to display content from within Zoho products using their own embed codes. Further, third-party resources can also be directly embedded inside your custom dashboard. Therefore, it enables in-application viewing of content like YouTube videos, blogs, Google Maps, websites, external analytics tools, web apps, and more, without redirecting users outside the application. While embedding it, you can choose to set the dimensions of the embedded asset and preview how it will look in the live mode of the application.
Example - A Zoho Writer document or a video uploaded on Zoho WorkDrive can be inserted through an embed snippet by adding the <iframe> code of their published version. The snippet will then serve as a container that loads the external URL in place inside the dashboard.
Security Tip: Ensure to embed content only from trusted resources to avoid CORS issues and protect your application from security risks.