IValidate not triggered when validating a required field

Vote:
 

Hi,

I have a text area property which is a required field.  The IValidate correctly validates on auto save.  But auto save isn't always triggered.

When creating a new page the editor is presented with the required fields.  The editor then fills in the required fields and clicks "Create".  The page refresh can the editor can fill in the rest of the optional fields.  But the editor can also directly publish the page without capturing any fields that triggers the auto save.  Because auto save is not triggered, the validations doesn't run.

Is there a way to trigger the IValidate when clicking on "Create"?

Thanks

#192242
May 11, 2018 15:59
Vote:
 

Hey Danie

If it helps you can stop the create new page being shown but still mark properties as required. Blogged about it here:

https://www.david-tec.com/2017/07/hiding-required-properties-on-the-create-new-page-in-episerver/

Otherwise it sounds like it could be a bug so if you can recreate on an Alloy site it would be worth submitting a bug report.

David

#192255
May 11, 2018 22:01
Vote:
 

Hi Dave,

Great thanks, that will work.  Thanks for the nice writeup :-)

Danie

#192285
May 14, 2018 15:07
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.