In v2025, we have addpage2.xml file inside C:\Users\{User}\AppData\Roaming\phpmaker2025\code folder, for creating Custom Template with two column layout.
However, if the Add Page is displayed in narrow/mobile screen, the layout will always display 2 column which is not good for mobile friendly.
This following code will change that behavior. You may simply change all the code in that file with the following one:
I actually have successfully made some .xml file in order to generate the Custom Template code that supports Two Column Layout,either for Add, Edit, View, Search, or Extended Search.
The good news is, beside it supports for basic Two Column Layout for Single Page, it also supports for Multi-Page feature for Add, Edit, View, and Search pages. Not only that, it also handles if some fields are setup to value of 0 from the Page No. under Fields setup → General. Last but not least, it also supports 2 direction to put the elements/controls on the form/page, either Top-Down or Zig-Zag, and each of it will be divided into the different .xml file, so that you may choose your desired direction.
Unfortunately, the bad news is, since I spent a lot of time, thought, and effort to do research, translate logic into written code, then implement every possible thing that could happen, and finally make sure all the functions work properly, I regret to say that this service is not free.