Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Checkbox Field in Document types > Blog post View modes: 
User avatar
Member
Member
kelements - 2/23/2011 11:56:56 AM
   
Checkbox Field in Document types > Blog post
I have added a checkbox field to my blog post form. How do I set the value of the this checkbox when checked?

In HTML it would look like this:
<input name="blogcheckbox" id="blogcheckbox" type="checkbox" value="You checked the box" />

User avatar
Member
Member
kentico_michal - 3/2/2011 1:17:44 AM
   
RE:Checkbox Field in Document types > Blog post
Hi,

You can specify the value of the checkbox option directly in field definition in following format: value;name

Value will be stored in the database if checkbox is checked, whereas name parameter will be used as a description next to the checkbox option.

Best regards,
Michal Legen

User avatar
Member
Member
Harish - 3/2/2011 6:10:04 AM
   
RE:Checkbox Field in Document types > Blog post
Hi Kelements,

You can also check with Blog post doctype. In that doctype one filed called BlogPostAllowComments using checkbox.

Thanks,
Naga Harish.