# Hide "—" if Formula is empty

**URL:** <https://community.elfsight.com/t/hide-if-formula-is-empty/100260>\
**Category:** Customization\
**Tags:** calculator\
**Created:** [February 10, 2025, 7:17pm UTC](https://community.elfsight.com/t/hide-if-formula-is-empty/100260 "2025-02-10T19:17:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sina](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/sina/32/59970_2.png) [@Sina](https://community.elfsight.com/u/Sina)\
**Post date:** [February 10, 2025, 7:17pm UTC](https://community.elfsight.com/t/hide-if-formula-is-empty/100260/1 "2025-02-10T19:17:11Z")

</div>

Hi,  
I’m trying to use an empty calculation as a placeholder for the result section. practically like a single divider. Works so far if the " — " wasn’t there.  
 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/3/e/3e8e92128b6c36cb514c6a10b03d181b4a214097.png)

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/9/694c17fb2eac3a480fd8c1b294f63eadf76ad06d.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 11, 2025, 11:30am UTC](https://community.elfsight.com/t/hide-if-formula-is-empty/100260/4 "2025-02-11T11:30:03Z")

</div>

@Sina We’ve added this code to the Custom CSS field to remove “-” symbol from an empty calculation:

```auto
[class*='result-secondary__SecondaryContainer-sc']:nth-child(4) [class*='result-secondary__Value-sc'] {
  display: none;
}

```

  

Also, our devs recommended removing of the divider from the calculation name and use this CSS code to create it:

```auto
[class*='result-secondary__SecondaryContainer-sc']:nth-child(4) [class*='result-secondary__Value-sc'] {
  display: none;
}

[class*='result-secondary__SecondaryContainer-sc']:nth-child(4) {
  border: 1px solid white;
}

```

  

This way, the divider will be displayed without breaks. Give a try and let me know if it worked for you 😉

---

<div class="post-metadata">

**Author:** ![Sina](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/sina/32/59970_2.png) [@Sina](https://community.elfsight.com/u/Sina)\
**Post date:** [February 11, 2025, 12:42pm UTC](https://community.elfsight.com/t/hide-if-formula-is-empty/100260/5 "2025-02-11T12:42:39Z")

</div>

it works great- thank you @Max

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [February 11, 2025, 12:47pm UTC](https://community.elfsight.com/t/hide-if-formula-is-empty/100260/6 "2025-02-11T12:47:20Z")

</div>

It’s my pleasure 😉
