Want limit number of elements in ILIST with only minimum elements value?
[ListItems(2,1000)][PropertyListCheckbox]public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }
ListItems Attribute can take minimum and maximum values both.
I only want to give minimum value?
Please help
Hi Tanvi,
You can follow the below approach and then make the code adjustment according to your need.
http://www.iceninemedia.com/articles/limit-the-number-of-items-allowed-in-an-episerver-propertylistt/
https://world.episerver.com/blogs/Allan-Thran/Dates/2017/11/limit-number-of-elements-in-a-linkitemcollection-or-contentarea/
https://world.episerver.com/blogs/aniket-gadre/dates/2018/10/max--min-validators-for-content-area-or-link-collection/
Hackish?
[ListItems(2, int.MaxValue)]
Want limit number of elements in ILIST with only minimum elements value?
[ListItems(2,1000)]
[PropertyListCheckbox]
public virtual IList<QuestionnaireAnswerBlock> Answers { get; set; }
ListItems Attribute can take minimum and maximum values both.
I only want to give minimum value?
Please help