Mixed content dynamic text

Is there a way to build a text area count length with mixed content?

i.e. mixing variables with text, something like ( [[255 - text.length]] of 255 characters remaining )

Hi!

Yes - your something-like example is pretty much exactly how you do it. If you are entering a value that accepts expressions (it will have an fx button), anything inside the double brackets will be evaluated, and everything outside of the brackets will be static text. You can have multiple expressions in there as well.

Example, let’s say you need the date 5 days from now:

[[Now.addDays(5).getDate()]]/[[Now.addDays(5).getMonth()]]/[[Now.addDays(5).getFullYear()]]

The slashes, since they are outside of the brackets, will show up as static text. Also, not your question but useful for date calculations, because you are adding 5 days to the date, month, and year, this date expression will properly cross month and year borders

1 Like

That’s great,

thanks for the rapid response.

regards

WB