I understand that I can paste only up to 10000 characters of custom code into Webflow. And the alternative is to save the file either to Dropbox or similar service and use the link. It works great, but I’m in a situation where I need to add a few CMS fields to my custom code.
I tried putting a part of the custom code where CMS fields are required into Webflow and then copied it to a .js file. It looks like this - {{wf {"path":"product-id-2","type":"PlainText"} }}
It seems to work fine when I paste it back into Webflow but does not work as expected when I save the code to a file and use the link instead.
Can someone please help me understand how to make it work? And I hope my explanation is clear. Please let me know if you have any questions.