I want to prevent the editor Widget from adding a new feature to a FeatureLayer when a certain condition is not meet using the before-apply-edits event. But so far I can not figure out how to cancel/prevent the ApplyEdits from going through. Does anyone have any insight on this?