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');
}
@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?