I have a need where user is allowed to perform certain action (onclick of button) only when current form/dashboard is in submitted state through Splunk Web Framework / JavaScript.
Current approach I am taking is - by comparing default and submitted tokens, if they are equal form is in sumitted state & v.v. Can there be a better approach/mvc api?