Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Cloning vertical multiple choice form control View modes: 
User avatar
Member
Member
joeh42 - 5/3/2011 4:54:36 PM
   
Cloning vertical multiple choice form control
Similar to http://devnet.kentico.com/Forums.aspx?forumid=45&threadid=19684, I want to develop a custom form control that acts similar to a field type of mutliple choice - vertical in the CMS desk.

However, I want to store the data pipe delimited in a single database field.

I figure in order to do this the easiest way, I would clone the field multiple choice - vertical form control. Which file / form control is the multiple choice - vertical? I don't see it listed in Site Manager - Development - Form controls.

Thanks!
Joe Hoppe

User avatar
Member
Member
kentico_michal - 5/9/2011 8:26:26 AM
   
RE:Cloning vertical multiple choice form control
Hello Joe,

Well, the Multiple choice control is defined in the source code and therefore it is not listed in Site Manager.

Anyway, the field of type Multiple choice saves selected values in the same format you want. It means that this control separates selected values with a pipe (ItemA|ItemB|ItemC).
If you want to implement this functionality in your custom form control, you will need to create a string which will contain selected values separated by the pipe in the Get method of Value property and parse it in the Set method.

If you need more information about developing form controls, I would like to point you to the following article: Developing form controls


Best regards,
Michal Legen

User avatar
Member
Member
joeh42 - 5/10/2011 8:20:14 AM
   
RE:Cloning vertical multiple choice form control
I picked up on what someone else was working on, and didn't realize that this is how the product works out of the box. Thanks!