Design and CSS styles
Version 5.x > Design and CSS styles > Multiple Choice inserts View modes: 
User avatar
Member
Member
jeff.gow-siskinds - 11/9/2011 10:01:49 AM
   
Multiple Choice inserts
The default multiple choice delimeter adds a '|' character when inserting into the DB.
Is there a way for me to change that delimeter?

Example:
Instead of Choice1|Choice2|Choice3 being inserted to the DB,
i'd like it to say Choice1, Choice2, Choice3

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/9/2011 10:10:45 AM
   
RE:Multiple Choice inserts
Hello,

Could you please let me know why would you like to change this value? Maybe there is an another approach to achieve your requirements without changing this behavior.

Best regards,
Boris Pocatko

User avatar
Member
Member
Jeff Gow - 11/9/2011 10:17:26 AM
   
RE:Multiple Choice inserts
I would like to display all of the selected values inside of a transformation.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/9/2011 10:39:33 AM
   
RE:Multiple Choice inserts
Hello,

In that case I would suggest you to create a custom transformation function which would replace the '|' with ', '. You can use the .NET method replace. Please check our documentation on how to create custom transformation functions.

Best regards,
Boris Pocatko

User avatar
Member
Member
Jeff Gow - 11/9/2011 12:02:46 PM
   
RE:Multiple Choice inserts
That does the trick, thanks.