Skip to main content
Jona_Demyttenaere
December 6, 2023
Question

Local Variables

  • December 6, 2023
  • 3 replies
  • 1004 views

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

This topic has been closed for replies.

3 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
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank