Determining if a Page is in Add or Edit Mode in Creatio (formerly bpm’online)

You’ll often want to know in your page code if the page is in add mode or edit mode. This is useful to perform only certain action in cases where the record is being added vs edited.

To know if the page is in add mode, you’ll also likely want to check if the page is in copy mode. Bpm’online has the ability for a user to copy a record to make a new one. This is also likely something you’d want to consider as “add” mode in many cases.

Checking if the Page is in Add Mode

// add mode
if (this.isAddMode()) {
    // do something
}

// OR to also include if is in copy mode

if (this.isAddMode() || this.isCopyMode()) {
    // do something
}

Checking if the Page is in Edit Mode

if (this.isEditMode()) {
    // do something
}
Want content like this delivered to your inbox? Sign up for our newsletter!
ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

2 Comments

  1. Hi Ryan, do you know how to do this in freedom?

    Thank you!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *