function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How can we find out the mode?

Is it possible to find out what mode we are in(Add, edit,Delete,clone)? I want to find out this in the controller. If I am in ADD mode then I want to set default values to some fields otherwise no. Thanks in advance.
Ron HessRon Hess
this can be done by the name of the page or by parameters on the query string, what else is there?