widget url 404'ing

widget url 404'ing

I'm creating a widget for the first time. When I grab the url from the base url section of the widget builder and append /widget.html it 404's

Just wrote a very basic test. I have a folder structure

app.zip
- widget.html
--js/app.js

/widget.html

<!DOCTYPE html>
<html>
<head>
<title>Basic Modal Test</title>
<script src="js/app.js"></script>
<style>
body { font-family: Arial; padding: 20px; text-align: center; }
button { padding: 10px 20px; }
</style>
</head>
<body>
<h3>Modal is Working!</h3>
<p>This is a basic test modal.</p>
<button id="closeBtn">Close</button>
</body>
</html>

/js/app.js

ZOHO.embeddedApp.on("PageLoad", function(entity) {
console.log("PageLoad triggered - Modal opened with entity:", entity);

document.getElementById("closeBtn").onclick = function() {
console.log("Close button clicked");
ZOHO.CRM.UI.Popup.closeReload({ Entity: "Sold_Leads" });
};
});

ZOHO.embeddedApp.init();
console.log("App initialized");
    • Sticky Posts

    • Kaizen #197: Frequently Asked Questions on GraphQL APIs

      🎊 Nearing 200th Kaizen Post – We want to hear from you! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Kaizen #198: Using Client Script for Custom Validation in Blueprint

      Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Celebrating 200 posts of Kaizen! Share your ideas for the milestone post

      Hello Developers, We launched the Kaizen series in 2019 to share helpful content to support your Zoho CRM development journey. Staying true to its spirit—Kaizen Series: Continuous Improvement for Developer Experience—we've shared everything from FAQs
    • Kaizen #193: Creating different fields in Zoho CRM through API

      🎊 Nearing 200th Kaizen Post – We want to hear from you! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Client Script | Update - Introducing Commands in Client Script!

      Have you ever wished you could trigger Client Script from contexts other than just the supported pages and events? Have you ever wanted to leverage the advantage of Client Script at your finger tip? Discover the power of Client Script - Commands! Commands

    Nederlandse Hulpbronnen