Skip to main content
Question

Is there a solution for stylizing portion of a variable string?


Sonburn

I’ve got variable strings where I need to display a portion of the string as a link, or bold. Normally I would just be able to select the text and style accordingly, but doing so with a variable string breaks the link to the variable.

I could break the string up into various parts, stylizing the individual parts as needed, but when you are dealing with a paragraph of text it would be impossible to keep the various parts reading like a paragraph (unbroken) as string lengths change, and then I am also dealing with translations/localization which moves parts around.

Gayani_S
Figmate
  • Community Support
  • January 22, 2024

Hey Jason, thank you for reaching out! Could you share more info on your issue? Screen recordings or screen shots would be helpful to raise this internally.


Carlos_Barbero-Cortes

If you have a string with a link like Click here to continue. There is no way to have it in a variable and show it in the design with the link instead of with the html code (or bold effect, etc…) that breaks the idea of using variables for international products because if you have to split the string in multiple pieces like: Variable1= “Click” variable2=“here”, variable3=“to continue.” that makes it impossible to have a smooth transition to other languages. Does it make sense?


Jason_Burns

“This is a string with bold text”… it’s not possible today to achieve this with a variable string. It would be nice if we had the ability to use markdown or something in a variable string, and have it reflect the text accordingly.


Sonburn
  • New Member
  • December 5, 2024

Markdown support has now been added to annotations and descriptions, hopeful it will come to variables.


Elena du Plessis

We desperately need this for a multi language solution. Any updates on this? I was hoping for this to be announced at config 2025.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings