Getting Current AEM run mode in Adaptive form



I am working on a requirement where I need to get AEM run mode in adaptive form . I am thinking about writing Servlet to retrieve runmode and call it in initialize event of  form or any widget in the form.I would like to know if there is any other option to get this value in Adaptive form or client libraries attached to that form ?

Answers (0)