Posts: 16
Threads: 4
Joined: Jun 2011
Reputation:
0
I am developing a project where data in a checkbox field (multiple selections) needs to have a pipe delimiter between values instead of the comma space currently defined by default by FormTools when I set up the Field Option group for this field in the GUI.
I can't see any option to define a different delimiter in the setup options for checkbox fields etc. Is there another way to force this to happen?
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Jun 5th, 2011, 7:41 AM
(This post was last modified: Jun 5th, 2011, 7:42 AM by Ben.)
Yes.... but I hesitate to bring it up because you'll maybe be the second person in the entire history of Form Tools to change it. I'm pretty sure it's safe to change but I won't fib: I haven't done it myself since the original 2.0.0 beta. That's why I stuck it in Section 2 of the library.php variables ("Section 2: the settings below should NOT be overwritten") to be on the safe side.
Add this line to your /global/config.php file:
PHP Code:
<?php
$g_multi_val_delimiter = "|";
However, you'll need to manually change all the values already in the database to change it to use this new delimiter.
Let me know how it goes.
- Ben