This topic is locked

Radio Buttons

2/25/2009 7:10:20 AM
PHPRunner General questions
M
mmponline author

I'm using a lookup wizard to add fields from a table. When the links are inserted it puts all in a long row with commas:
Blue,Charcoal,Green,Orange,Pink,Purple,Turquoise, etc. (When it's a lot of info, it even cuts of some of the text)
See Pen Colour under http://penspenspens.co.za/pensdb/Pens_list.php
This row is too long and the whole page layout is affected by this. Is there a way to get the items to wrap at a certain length or even show underneath each other rather than next to each other.
I tried by changing to HTML view without any luck.

T
thesofa 2/25/2009

why not use a drop down box?

M
mmponline author 2/25/2009

It is a dropdown box based on a lookup tablefor pen colour.

I can't use a list of values, as I need to give the user the ability to add new colours as required.
EDITED: Even when adding using a list of values, the items are listed next to each other with commas.
The other colours was added in the description box as a workaround, but not ideal.

Sergey Kornilov admin 2/25/2009

Stepan,
I believe you can set 'View as' type to 'Custom' and replace commas with

$value = str_replace ( "," , "<br>" , $value );
M
mmponline author 2/25/2009

Thanks, works fine and will do for now.

I really look forward to the new version where the radio buttons will be more customisable.