Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Model property writable only on create

Vote:
 

Is there an existing attribute or editor descriptor that can be used on a Page or Block Model property to allow that property to be editable only upon initial creation, but then readonly on future edits?

#181155
Aug 09, 2017 22:40
Vote:
 

Hi Eric,

This blog post might be what you're looking for: https://www.david-tec.com/2017/07/hiding-required-properties-on-the-create-new-page-in-episerver/

Just use property.IsReadOnly instead of property.IsRequired.

#181160
Edited, Aug 10, 2017 9:36
* 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.