Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Not sure if this works, but what if you create an image block with this property and the image, and set the block property to required?
Btw, we've solved similar situations earlier with using a select with Not set/True/False instead of having a checkbox.
It would be nice if it worked to use a checkbox but apparently it doesn't, for now using a select with values yes, and no will suffice.
Thanks for the help!
Hello! I want a checkbox to show up instantly when creating a page. To do this with other types I just add the [Required] attribute to the property. However, it works differently with checkboxes, because for it to be treated as specified it needs to be set to true. If I put required on it it will show up but if I don't check it (as in set it to true) I can't create the page.
Is there any other way I can make it show on page creation not using [Required]?
[Display( Name = "Visa bild publikt", Description = "Om denna är ikryssad så visas bilden även om man inte är inloggad", GroupName = SystemTabNames.Content, Order = 600 )] [CultureSpecific] [Required] public virtual bool ShowImagePublic { get; set; }