Check page action for validation

Vote:
 

Hi,

I have some custom validation (inheriting ValidationAttribute) on a CMS property which should trigger if I try to publish a page but which should not trigger if the page is set ready to publish and I then select to withdraw and edit.

Checking the status of the page seems to work in that in this scenario it is CheckedIn but I'm not sure how to differentiate between publishing and withdrawing to edit.

This is probably quite simple but can anyone offer a suggestion on how I might check on the page action to determine whether the validation should trigger or not?

Thanks in advanvce,

Mark

#227653
Sep 09, 2020 15:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.