I’m attempting to create a custom code block that shows information stored in an Airtable table of about 150 lines (not shown all at once). From what I understood, the way to achieve this is to use a List/Table etc., set the source to the relevant Airtable, hide the List/Table from view, and use the data in the custom code block.
So far, I have not yet actually hidden the List I’ve set up for that, and it correctly shows the relevant data in the Softr preview. However, when checking window.records in the console, the data does not show up. Another record shown in the page (unrelated to this custom code block) does show up. What am I missing here?
I have a question about the use case, do I get correct that you want to hide all the records on a list block and display them only after some action, (search for example)?
Hi @Suzie
Not quite - I want the list itself to be hidden at all times.
I have a custom code block with some HTML and JS that needs to have access to an Airtable list to dynamically populate some fields. The list block itself is actually not something I require to be visible, but I understood that that would be required as a workaround to get the Airtable data to be loaded onto the page (and therefore accessible by the custom code block through window.records). If that step can be skipped, even better of course!