Hi Bob,
I´m trying load dropdown options from the database. I want to use a phpscript to do that. So I added a "php-field" before the Display Section in the setup tab.
From the faq I used the example with a php-function to test:
function php1(){
$options = ["y" => "Yes", "n" => "No"];
return $options;
}
Is this script OK or can you just give me an exmple of the right function-syntax, this would help me.
In the designtab, do I need to call an action (events -> actions -> function) or is to write "{var:php1}" in the Options of the checkbox enough ?
Thank´s for your help
Pascal
I´m trying load dropdown options from the database. I want to use a phpscript to do that. So I added a "php-field" before the Display Section in the setup tab.
From the faq I used the example with a php-function to test:
function php1(){
$options = ["y" => "Yes", "n" => "No"];
return $options;
}
Is this script OK or can you just give me an exmple of the right function-syntax, this would help me.
In the designtab, do I need to call an action (events -> actions -> function) or is to write "{var:php1}" in the Options of the checkbox enough ?
Thank´s for your help
Pascal