Formula Width Percentage

I would like to set the width of an element with a formula. How do I specify the output of the formula as a percentage?

You might try adding to the end of your formula:

+ "%"

So your formula might be

(1 / countofcolumns) * 100 + "%"

Note that a fraction needs to be multiplied by 100 if you want it to be a percentage.

In javascript (and formulas are just wrapped javascript" you can concatenate strings using the addition (+) operator, and adding a number plus a string generates a string made of each.

1 Like

Worked great. Thank you!

1 Like

You could also use the concatenate nocode formula, but @raydeck’s answer also works :wink: