Has custom code stopped working for anyone else who was using it to reload specific blocks on a page after a one click update on another block on the same page? Worked for the longest time, but no longer. (SmartSuite data source).
Hi Kristin,
Sorry, I’m not as active as before on the community.
Let’s try to solve this.
Can you show me the code you are using and how the page is organized? Also do you use the option “Single Page Application (SPA)”?
Hi Matthieu -
Hope you are well and thank you for your reply. I do not have SPA option active. Details below - let me know if I can provide any additional info. I appreciate you taking a look.
Detail page with tabs as below. They make their selections on the Accommodations tab (one-click update to SmartSuite), then click to the Proposal tab to review and approve the items selected.
Proposal Tab:
Top Block (list10) is conditionally filtered to display just the items that have been selected on other tabs. SmartSuite is calculating the total of all selected items and I have verified that this calculation is correct and updating in SS. The Trip Cost Summary list block below it (list6) is set to display the total of selected items in the data source. However the block is not updating.
You had previously given me the code which worked for a long time. I tried adding a row action button to update a field in the data source to try and force it to reload, but that hasn’t worked either.
<script>
window.addEventListener('block-loaded-list10', () => {
window.addEventListener('update-record-success-list10', () => {
setTimeout(() => {
window.dispatchEvent(new CustomEvent('reload-block-list6'));
}, 3000);
});
});
</script>
Thanks for the details!
One question: after you perform a one-click update on list10, did you try to refresh the page manually after 3 or 4 seconds? If so, does list6 show the correct amount?
I want to understand whether this is really a code issue or a delay in the data being sent to Softr.
Do you know roughly when this behavior started?
Hi Matthieu –
Manual refresh doesn’t seem to do anything. I’ve tried 3 or 4 times and it doesn’t update. If I click the one-click action button to refresh it works sometimes if I wait a few seconds after clicking on the tab.
I’m not exactly sure when it started, but sometime in the past month. A client pointed out to me the total was incorrect and it was because it wasn’t updating. It was correct in the datasource.
@artur is there any known slowness regarding the formula field in SmartSuite (like in Airtable) to show on the frontend?
@Kristin the custom script might not be the issue. I may have a solution to make it work, but waiting for Artur’s answer.
PS: do you confirm the numbers in the Trip Cost Summary block are coming from formula fields?
@matthieu_chateau yes unfortunately if formulas get updated outside of Softr app and we ask for an update those systems say nothing changed
if as a result any usual field could get random update it would work
Hi Matthieu - Yes it is a formula field. It used to update fine, but doesn’t seem to now. What I need is a total of the conditionally filtered records displayed in the list block, or a table block - but tables don’t seem to display as well on mobile.
As Artur mentioned, this is related to the formula fields that take longer to update on the frontend.
The original code I provided works well — the data just isn’t being fetched in time. The way Softr handles data has changed — it now relies on webhooks instead of a direct API (I think SmartSuite integration works the same way now). This improves data loading speed… except for computed fields (rollups, formulas, etc.) ![]()
There are two solutions:
- Use a SmartSuite automation to display the calculation results in simple text fields. Then you can use those simple text fields for the “Trip & Cost Summary” Block.
- Use the Vibe Coding block to recreate both your “Review & Approve” block and “Trip Cost Summary” block in a single block, where the Trip Cost Summary calculation is performed on the frontend (I should be able to handle this).
If you need a video call, let me know.
Thank you, Matthieu. I will try these options and see if I can find a solution. I appreciate you taking a look.

