9 Posts
icke
4 years ago
1
Topic

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

Get a VIP membership
1283 Posts
Bucklash
4 years ago
0
Level 1

I reckon would be best to head to Github i.e.do a pull request:

https://github.com/Octopoos/SEBLOD_more/tree/master/plugins/cck_field/checkbox_dynamic

Get a Book for SEBLOD