multi field modification

edited November 2015 in Modules
Hi!
I'm using has_many relationships to my simple module and I need to pass some additional data for list items created by 'multi' field, it has only data-label attribute and id...
I want (for example), depending on whether there is an image for the record or not, was created attribute data-image="true/false" etc.

I know that it uses supercomboselect function for displaying data
and I've created a custom field with the same function,
maybe you can advise me how to make this function to take multidimensional array if possible...

Thanks in advance!

Comments

  • edited 11:46AM
    There is a parameter called "add_params" that you can pass in a query string which will get passed as values to the create screen:
    $field['my_multi']['add_params'] = 'image=1&otherparam=myotherparam';
Sign In or Register to comment.