How to obtain a combobox with Module Builder

Hi,
I’m trying to get a combobox in a form using Objects in the Module Builder.
Following the directions I see in the commented lines of the source generated by the Module Bulder, I tried to insert the $ fileds array ajn element like the following:

‘fk_status’ =>array(‘type’=>‘integer’, ‘label’=>'Status, ‘enabled’=>1, ‘visible’=>1, ‘notnull’=>1, ‘position’=>20, ‘showoncombobox’=>true, ‘arraykeyval’=>array(“0”=>“Draft”,“1”=>“Active”,"-1"=>“Cancel”)),

But, in the form I get a text input element.
Which is the correct syntax?
Thank you

1 Like

Hi,
did you find a solution? I’ve started recently with dolibarr and have same problem…
Thanks!