# Javascript output not showing in the frontend

**URL:** <https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244>\
**Category:** Ask for Help\
**Created:** [September 8, 2025, 12:03pm UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244 "2025-09-08T12:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clement\_Koo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clement_koo/32/62759_2.png) [@Clement\_Koo](https://community.glideapps.com/u/Clement_Koo)\
**Post date:** [September 8, 2025, 12:03pm UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244/1 "2025-09-08T12:03:09Z")

</div>

Hi,

I have the following codes which gives the correct result in the backend javascript:

> const sets = p3.split(“\”).map(set =\> set.split(“|”).map(item =\> item.trim()));  
> let targetSet = null;  
> const falseSets = ;
> 
> // Identify the target set and collect FALSE sets  
> for (const set of sets) {  
> if (set[0] === p2) {  
> targetSet = set;  
> } else if (set.length \> 2) {  
> falseSets.push(set);  
> }  
> }
> 
> // Return empty string if target set is not found  
> if (!targetSet) return “”;
> 
> // Extract target properties  
> const targetDateRange = targetSet[2], targetEquipment = targetSet[3];  
> if (!targetDateRange || !targetEquipment) return “”;
> 
> // Parse date range  
> const [targetStart, targetEnd] = targetDateRange.split(" - “).map(Date.parse);  
> const targetEquipmentSet = new Set(targetEquipment.split(”\n").map(item =\> item.trim()));
> 
> // Object to store conflicting equipment and owners  
> const conflictingItems = {};
> 
> // Process false sets  
> for (const set of falseSets) {  
> const setDateRange = set[2], setEquipment = set[3], setOwner = set[4];  
> if (!setDateRange || !setEquipment) continue;
> 
> // Parse date range  
> const [setStart, setEnd] = setDateRange.split(" - ").map(Date.parse);
> 
> // Skip non-overlapping date ranges  
> if (targetEnd \<= setStart || targetStart \>= setEnd) continue;
> 
> // Check for conflicts using `Set` for efficiency  
> for (const item of setEquipment.split(“\n”)) {  
> const trimmedItem = item.trim();  
> if (targetEquipmentSet.has(trimmedItem)) conflictingItems[trimmedItem] = setOwner;  
> }  
> }
> 
> // Generate output  
> return […targetEquipmentSet].map(item =\> conflictingItems[item] ? `${item} with ${conflictingItems[item]}` : item).join(“\n”);

The above looks for conflicting booked equipments with overlapping dates.

However, the result is not showing in the frontend. I tried optimizing the codes but still the result is not showing in the frontend. Anyone able to advise how to overcome this problem?

Thanks in advanced,

Clement

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 9, 2025, 1:04am UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244/2 "2025-09-09T01:04:44Z")

</div>

So can you confirm that your end result is a string, and you can’t find a way to display that string on the front end?

1/What component were you using to display it in the front end?  
2/Are you using Glide Tables, Glide Big Tables or something else?  
3/Do you have row owners enabled for the relevant tables?

---

<div class="post-metadata">

**Author:** ![Clement\_Koo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clement_koo/32/62759_2.png) [@Clement\_Koo](https://community.glideapps.com/u/Clement_Koo)\
**Post date:** [September 20, 2025, 3:00pm UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244/3 "2025-09-20T15:00:45Z")

</div>

Hi Thinh,

Thanks for responding. I realized the problem lies when I’m in edit mode.

I managed to show the value when I’m in detail mode.

Thanks anyway.

Clement

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 20, 2025, 11:30pm UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244/4 "2025-09-20T23:30:41Z")

</div>

Add/edit mode is a bit of a sandbox. Great that you can now display it in the details view!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 27, 2025, 11:30pm UTC](https://community.glideapps.com/t/javascript-output-not-showing-in-the-frontend/84244/5 "2025-09-27T23:30:42Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
