Question
In freedom UI client side coding, how to check if it is add mode or edit mode
15:55 May 29, 2024
Hi Community,
In freedom UI client side coding, how to check if it is add mode or edit mode? In classic UI this is possible.
Like
2 comments
19:36 May 29, 2024
The $context has a few ways to check this, one way is to check the CardState:
const cardState = await request.$context.CardState; if (cardState == "add" || cardState == "copy") { // do something here }
Ryan
07:21 May 30, 2024
Ryan Farley,
Hi Ryan,
We are using version 8.1.1. However, it seems request.$context.CardState attribute seems to be null.
Show all comments