Multiple-choice list box from table
Posted: 2020-02-13 09:00
Is the a way to set up a Multiple-choice list box, similar to what is available in the options list, but the selections are from a table field in stead of using the options list?
A place where AppGini users can exchange ideas and help each other.
https://forums.appgini.com:443/phpbb/
https://forums.appgini.com:443/phpbb/viewtopic.php?f=4&t=3440
Code: Select all
function YourTablename_form(
Code: Select all
if(is_file(dirname(__FILE__).'/hooks/YourTablename.YourFieldName.csv')) {
$YourFieldName_data = addslashes(implode('', @file(dirname(__FILE__).'/hooks/YourTablename.YourFieldName.csv')));
Code: Select all
if(is_file(dirname(__FILE__).'/hooks/YourTablename.YourFieldName.csv')) {
$mi = getMemberInfo();
$username = $mi['username'];
$YourFieldName_data = addslashes(implode('', @file(dirname(__FILE__).'/hooks/YourTablename.YourFieldName.' . $username . '.csv')));