Page 1 of 1

Native select-one on field level setting

Posted: Tue Oct 25, 2022 6:22 pm
by mobhar

Sometimes, we need to implement Select native control only for the specified field(s) in some tables. In other words, we do not want to use Select2 control.

Could you please add the Select Native option under Edit Tag pane, so that PHPMaker will generate Select native only for the field?


Re: Use native SELECT tag for select-one fields option for Table/Field level

Posted: Tue Nov 01, 2022 10:55 pm
by mobhar

This feature request has finally been added since v2023.6.0. Thanks!

If you want to implement it, simply set IsNativeSelect field's property to true.

For example, from demo2023 project, simply put this following code in Page_Load server event of Add Page and Edit Page that belongs to orders table:

$this->EmployeeID->setNativeSelect(true);

This will make EmployeeID field becomes using Select Native control instead of Select2 control.