Mode-Detection: New Form, Edit Form
Hello,
how can I detect in the Javascript-Code if a form is opened as “New Form” or as “Edit Form”. We know that It is possible to save “New Form” and “Edit Form” with differing Javascript-Code, but this is easily overwritten when all options are accidently set while saving the form.
Regards UDRO
how can I detect in the Javascript-Code if a form is opened as “New Form” or as “Edit Form”. We know that It is possible to save “New Form” and “Edit Form” with differing Javascript-Code, but this is easily overwritten when all options are accidently set while saving the form.
Regards UDRO
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear UDRO,
You can check it like this:
You can check it like this:
Code: Select all
if(fd._formType() == 'New'){
//new form code
}
else if(fd._formType() == 'Edit'){
//edit form code
}
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests