SOLUTION: Detect form mode using JavaScript

  • 29 August 2019
  • 2 replies
  • 254 views

Badge +4

You can detect your form mode in JavaScript using the following syntax:

':IsNewMode'':IsEditMode'':IsDisplayMode'

For example:

if ':IsNewMode' {  alert('Form is in New mode');}if ':IsEditMode' {  alert('Form is in Edit mode');}if ':IsDisplayMode' {  alert('Form is in Display mode');}

2 replies

Badge +17

@ms7 I am not sure what the purpose of this post was. Since its not a question, do you want to write more info and maybe turn this into a blog so others may know what you were attempting to do that led to this discovery or solution?

Thank you for helping me find this easily. The purpose of this post was to save a few people time on googling "how to detect form mode using javascript".

Reply