Write To Local Storage Action Application Steps

1. Define the Action in UI Design

  • Log in to the Kuika platform.
  • Select the project you want to work on from the Apps screen.
  • Go to the UI Design module.
  • Select the component you want to add the action to (e.g., a button).
  • Open the Properties panel on the right side.
  • From the ADD ACTION menu, select the Local Storage → Write To Local Storage action according to the trigger event you want (Initial Actions, OnClick, OnBlur, etc.).

2. Configure Action Parameters

  • Key (String – Required):
    • The name of the data to be stored in the browser.
    • This key is used to access the same data later.
    • Example: “lastVisitedPage”, ‘userInfo’, “rememberMe”
  • Value (String/JSON/Number – Required):
    • The actual data to be stored.
    • This value can be text, a number, or an object converted using JSON.stringify().
    • Example: user.email, “darkMode”, { name: ‘Ali’, role: “admin” }