Skip to main content
Question

Local Variables


Jona_Demyttenaere

Hi I want to use a blank string in local variables how do I do this.

This topic has been closed for replies.

  • Figmate
  • December 7, 2023

Hi Jona,

Thank you for your question! I’m currently checking with our internal team to see if there’s a solution. I’ll let you know as soon as I receive a response!

Thanks,
Junko


  • Figmate
  • December 8, 2023

Hey, Thanks for your patience!

The workaround here is inputting just a single space (pressing a space key on your keyboard) for the string variable.

Please give it a try! If you’re having trouble setting the empty string, feel free to share a screen recording of the issue so that we can take a closer look!


tank666
  • December 8, 2023

You can actually create a string variable with an empty value (without using the space character). This is possible using the Plugin API. Try searching for plugins in the Figma Community for working with variables, or, if you know programming—use the setValueForMode method.

figma.com

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