Is there any way to make a page available for editing only?

Question

Is there any way to make a page available for editing only?

Answer

The updateButtonsVisibility() method is defined in BasePageV2.

Method 1: Override the updateButtonsVisibility() method so that ShowSaveButton had a false value: 

this.set("ShowSaveButton", false);

In this case, the fields will not be locked, but the "Save" button will not be displayed.

Method 2: Perform verification upon saving. In case of matching the necessary conditions, execute the parent method or display a message that editing is not permitted.

Like 0

Like

Share

0 comments
Show all comments