form.getItem(' ').setOptions() / .hide() is not a fonction

Hi,
I’m trying to call setOptions() and hide() functions on a select formControl but I get the error " setOptions is not a function". Same error for hide().
Has it been deprecated ? If yes, anything to replace it ?
Here is my code :

          var type_options = [
            {value: "marche",    content: "marché"},
            {value: "ts",        content: "TS"},
           ]    
    form.getItem('fp_type').setOptions(type_options);

Also I can’t get combo being disabled using
form.getItem(‘combo’).config.disabled = true;
form.getItem(‘combo’).paint();
(this works fine with select though)

Thanks for help.

Please, try to use the:

form.getItem("fp_type").getWidget().setOptions(type_options)

instead of

form.getItem("fp_type").setOptions(type_options)

https://docs.dhtmlx.com/suite/form__combo.html

Thanks, I didn’t see this part of the doc !