This topic is locked

List Page: Truncate a Field with Delimited Values

8/24/2012 2:52:57 PM
PHPRunner General questions
T
Tricause author

I've noticed a slightly annoying anomaly in PHPRunner relating to the lack of truncating a string of a delimited list on "List pages". This occurs when a field (on the "Edit page") allows the selection of multiple values using the "Lookup wizard" with either the "Checkbox list" or a "Dropdown box" option.
An example is as follows:

I have a list of 8 items and check every item. The total character count of these items, delimited with a comma, is above 29 characters. If I go to the "Misc" tab of the program, and set the field "Characters to display" to 20, then when I load this page, I will see that this field has not been truncated, despite there being over 20 characters. I have noticed that this is because the truncate is applying to EACH item in the list, not the entire list itself.
Similarly, the "Custom" display option for list pages has that the variable contains the string representation of one of the items in the list, rather than the string form of the entire list. This means that if I were to try to circumvent this by truncating the field myself, I am also unable to.
An image showing the quick process to recreate this is below. Note that another field has actually less characters than the field with the comma-delimited list, and it is properly truncated:


Is there a solution to this? I currently have a work around, but it is not an elegant solution.