Native select-one on field level setting

Post Reply
mobhar
User
Posts: 11660

Native select-one on field level setting

Post 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?


mobhar
User
Posts: 11660

Post 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.


Post Reply