Skip to main content
New Idea

Improve text formatting in the Expression Builder node

Related products:Freshservice
  • November 12, 2022
  • 6 replies
  • 193 views

christian.mentor
Skilled Expert
Forum|alt.badge.img+6

The Expression Builder node in Workflow Automator could benefit from three improvements:

  • Fix the bugginess when pasting text
    Whether you copy/paste from an external text editor or even text from within the Expression body, the node has a hard time with pasting
  • Switch from Sans-Serif to a monospace font for readability
    The font kerning in the Expression body makes it hard to distinguish between characters  especially when they are multiple parentheses next to each other
  • Conditional coloring for expression variables
    Distinguishing text (placeholders, numbers, operands, strings) with different colors in a expression formula would make editing the expression easier on the eyes

Just take a look at the formula bar in Google Sheets — if you mimic that style, expression builders would be way easier to work with.

6 replies

stellarhomes
Forum|alt.badge.img+2

As an association develops, so does the intricacy of its robotization use cases. Workflow designers can use the expression builder node to help meet these advanced automation requirements by performing operations like adding numbers together, replacing a portion of a text string, comparing strings, and manipulating date/date-time fields

Expression node

 The Expression builder node enables users to construct intricate expressions and carry out logical, string, date, and data operations within the workflow.
Utilize the outcomes of the conditions created using expressions in subsequent workflow nodes.


amugofjava
Apprentice
Forum|alt.badge.img
  • Apprentice
  • November 26, 2024

Hi,

This issue is 2 years old, but bumping it up again as it is still very valid and needed. The expression builder for anything more than the simplest functions is challenging and frustrating to use. 

Even if you start with just changing to a monospace font, that would be a huge help.

If you have to do any sort of function nesting and you miss-align a bracket, you get a very unhelpful error. Combined with the current font choice, trying to work out which bracket is missing or wrong is difficult.


Daniel Söderlund
Top Contributor ⭐
Forum|alt.badge.img+14

I do my larger expressions in notepad++ then copy them into the node. 


christian.mentor
Skilled Expert
Forum|alt.badge.img+6

I do my larger expressions in notepad++ then copy them into the node. 

I do mine externally too, but that’s where the pasting issue happens for me. It takes several attempts before it actually works, which is awful considering how basic it should be


Forum|alt.badge.img+3
  • Contributor
  • December 18, 2024

A lot of times, if you just want the text when pasting, You might need to do a ctrl + Shift + V to paste something without the HTML encoding. It has saved me a lot of headaches when pasting into expression or condition node which to Expression mode.

The expression node hates any extra formatting but all the other text editors rely on it so heavily you never know it had line breaks until it spits out a result. 

I learned overtime to use ctrl + Shift + V first then edit the text afterwards. If I need something formatted in special way, I do it in Google Docs first or an HTML editor like https://onlinehtmleditor.dev/ so I can see and remove weird line breaks that get added in automatically by Freshservice text editors. 


christian.mentor
Skilled Expert
Forum|alt.badge.img+6

A lot of times, if you just want the text when pasting, You might need to do a ctrl + Shift + V to paste something without the HTML encoding. It has saved me a lot of headaches when pasting into expression or condition node which to Expression mode.

The expression node hates any extra formatting but all the other text editors rely on it so heavily you never know it had line breaks until it spits out a result. 

I learned overtime to use ctrl + Shift + V first then edit the text afterwards. If I need something formatted in special way, I do it in Google Docs first or an HTML editor like https://onlinehtmleditor.dev/ so I can see and remove weird line breaks that get added in automatically by Freshservice text editors. 

Yep — I do that as well and the Expression node will briefly show the text, then it disappears and my cursor jumps to the beginning.

What has been working for me lately is inserting a few extra lines, then pasting my text. From there, the extra lines disappear and my text appears where I want it to. I hope this is not unique to me because that would be wild.

Pasting aside — I would still love to see monospacing and differentiation between variable types like strings, numbers, and function characters like this:

 

A gorgeous and legible expression editor 😍