I am trying to save to local storage from a text input field with the following code.
Blockquote
localStorage.setValue('Taxfirst', {{ textInput2.value }})
The Javascript debugger runs this without error messages but nothing is saved in local storage.
Any suggestions?
Mike
I found the answer in some other code I had written:
The correct code is:
Blockquote
localStorage.setValue('Taxfirst', textInput2.value)
Hey @mdsmith1! Happy Monday ![:slight_smile: :slight_smile:](http://community.retool.com/images/emoji/apple/slight_smile.png?v=12)
Glad you were able to find the solution here. In a JS query, Preloaded JS field or an Event Handler's Run Script, you don't need double curlies (you do need them pretty much everywhere else).
I'll make a note to our app development teams to help clarify this within the product itself!