Allows a user to save key/value pairs in mobile. The localStorage object stores data with no expiration date. The data will not be deleted when the application is closed, and will be available the next day, week, or year.
Smartcode
Syntax
SetLocalStorage(Key, Value)
Parameters
- key (Required) – Name of the storage key to be set
- String – A-Z,0-9,Special characters(except #,$)
- Length – 50 Characters
- value(Required) – Value to be stored in local storage
- String – A-Z,0-9,Special characters
- Length – 500 Characters
Directcode
Syntax
Orefuncs.SetLocalStorage
Parameters
- key(Required) – To set the key
- state(Optional) – To set the value
Example
SetLocal(‘Data’,’$Text_1′)