I'm trying to create a multirow to show some user custom fields. These
fields' names will vary in each case depending on how the
administrator defines them. I've tried with this code but it doesn't work:
set custom_field_list [db_list custom_fields "select field_name from user_custom_fields"] template::multirow create user_custom [join $custom_field_list " "]Something similar happens when I try to get values for these fields from a form with ad_page_contract. As I don't know the fields' names I tried:
set field_list [db_list custom_fields "select field_name from
user_custom_fields"]
set form_variables ""
foreach field $field_list {
append form_variables "$field:optional
"
}
ad_page_contract {
} {
$form_variables
}
But it doesn't work.
Can somebody help me?
Request notifications