how to change multiple checkbox values format in list page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mansour
User
Posts: 282

how to change multiple checkbox values format in list page

Post by mansour »

Hi,
I have a table (clinics) that includes a text field (PtServices) which uses a lookup table(ptservices).This is a multiple choice field so I can select many items from the lookup table. I want to show each field items on the list and view page in a line. Currently, the filed items are shown as comma separated values.
which event I have to use?
Thak You
Mansour


arbei
User
Posts: 9288

Post by arbei »

You can update the ViewValue of the field in Row_Rendered Server Event.

Use explode() function to change it to an array and use it to build the new ViewValue.

For example:
$this-><Field>->ViewValue = <New ViewValue>;

Read help file topic: "Server Events and Client Scripts" -> "Row_Rendered" for more information.


Post Reply