CMS Load dosent work with custom JS.
I got a page using some custom JS to add autocomplete function to input fields, i have hidden CMS collections inside them and its working. CMS load render all works for one list, but not the other one.
Can i get some help?
Hey @eines.josef! Can you share a link please?
@eines.josef, can you go more into detail on how the functionality is supposed to work? I see the settings for both lists are correct. You can also share a read-only
Hi Luis,
here is read only: Webflow - Eiendomsmegler
Hi, i solved it. Forgot to add “paginate items” on second list… we good luis
1 Like
@eines.josef, Webflow’s Native pagination is needed for the render-all
load mode, your first list has this setting enabled and the second one is missing it. Can you enable and test?
Does the code work for both instances? This code enable you to run code for each instance
<script>
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
'cmsload',
(listInstances) => {
console.log('cmsload Successfully loaded!');
listInstances.forEach((listInstance) => {
//Add code for each CMS Load instance here
listInstance.on('renderitems', (renderedItems) => {
console.log(renderedItems);
});
});
},
]);
</script>