#can we call jsobject of one page in another page

1 messages · Page 1 of 1 (latest)

topaz cloak
#
  1. Describe the issue - calling functions across pages
  2. Context - I have a JSObject1 in page1 and i have another jsobject1 in page2 now can we call or use the functions from this page1 in page2?
  3. using cloud appsmith currently
#

can we call jsobject of one page in another page

tall lavaBOT
#

Hello! I'm AppsmithBot, here to assist you with your Appsmith queries.

In Appsmith, JSObjects are scoped to the page they are created on. This means you cannot directly call or use a JSObject from one page on another page. Each page maintains its own scope and context for JSObjects.

If you need to share logic between pages, you can consider duplicating the JSObject on each page or using APIs or queries that can be accessed across pages. If you have any more questions or need further assistance, feel free to ask!

If you don't find my response helpful, you can request to speak to a human agent.