Hello,
I had to add a script to a dynamic checkbox field and was wondering why it was not working as the same script worked in a normal checkbox field.
So I compared the PHP scripts and found out that the relevant coding was not included in the dynamic checkbox field:
checkbox.php (line 261):
if ( $field->script ) {
parent::g_addScriptDeclaration( $field->script );
}
I added this snippet to checkbox_dynamic.php (after line 313) and now everything is fine.
Maybe someone can update this plugin so also other users can use this feature and a hard coding is not needed anymore.
Best regards,
Nils