@matthieu_chateau perhaps you could help me. I’ve got a bit of a similar issue.
I use Airtable to host images.
Images are added there automatically via API.
Each record has title, image attachment, created time.
I have a list in Softr which shows the images as large objects and the titles below each image.
What I need to achieve is that the front end of the list page on Softr has to show new images added to Airtable immediately without the need of manual refresh.
Would some of the custom code presented in this thread work with some tweaking?
=>If “total” is your custom code block ID, it won’t work as CustomEvent('reload-block-BlockID')); is purely made for dynamic blocks like list, list-details, calendar, kanban or table.
Hi @matthieu_chateau - just to clarify it is not possible to update a table in real time when a field is updated in airtable?
My use case is to show the user a % completeness (or progress) using a formula field based on the status of other fields which are updated with automations.
Is this working for the new listing block?
I have category-detail-desktop (listing detail block) and category-suggest-desktop (listing block)
The idea is when I update the category in the “category-detail-desktop”, the “category-suggest-desktop” should auto reload.
I tried the code in various place (app level, page level, and in custom code block right below the 2 blocks) but doesn’t seem to work.
Let me know if I’m doing something wrong. Thanks.
<script>
window.addEventListener('update-record-success-category-detail-desktop', () => {
//IF THE DETAILS BLOCK AND LIST BLOCK ON THE SAME PAGE
window.dispatchEvent(new CustomEvent('reload-block-category-suggest-desktop'));
});
</script>
<script>
window.addEventListener('update-record-success-category-detail-desktop', () => {
//IF THE DETAILS BLOCK AND LIST BLOCK ON THE SAME PAGE
window.dispatchEvent(new CustomEvent('reload-category-suggest-desktop'));
});
</script>
Reload-blockId (for new blocks) instead of Reload-block-blockId (for old blocks)
I am using the code for refreshing table block.
I would like to know if can make the refresh appear non visible. I.e. Each time I add a record into the Table block I want it to appear straight away, however in the table block this reloads each time (spasms) unlike the list block which you can’t tell it’s refreshing.