Skip to main content
Question

Want to save all digits of a text field into numeric variable instead of string variable

  • July 11, 2024
  • 1 reply
  • 145 views

ZAINAB_FATIMA1

Hi,
I have an interactive text field that takes key values and sets them into a string variable by concatenating each key value. But the issue is that I want to set all clicked key values into INT not in STRING because I need to do some calculations on it after this.But I do not know how all digits are stored in numeric variables.

For Example:
when a user enters 5023 in the text field then I want intVariable to store each digit as it is(Currently possible to store only in a string)

Can anyone have a solution or any idea how to do it or any suggestion if there is something so that I can convert string to integer into Figma?

This topic has been closed for comments

1 reply

Jessica_Redshaw

I also want to know how to do this. Right now I have a prototype set up so it’s using string variables to type numbers into an input field and then show the typed value on the next screen, however I want to also show the cost of that typed value on that next screen by writing an equation of my stringVariable times a mutliplier to show how much it is. But after researching I don’t think it’s possible in Figma right now.


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