The fields configured to be displayed in the same row in a custom form might be in the wrong order (from left to right). The left-to-right order for these fields in the same row can be changed by editing the form XML.
Example: The field ‘Stage data source(clinical)’ should be left of ‘Stage data source(pathological)’
Go to Forms > the form to be edited.
Click on ‘Export’ to download the form zip/XML
Open the form XML and search for the controls that are to be changed in order of display
Observe that these fields are enclosed within <row></row> tags. This specifies they are to be displayed in the same row
Now, select the code block of control to be shown on the left. Place it after opening <row> tag.
Below this control, place the code block of another authority to be shown to the right.
Ensure that the controls displayed in the same row are above the closing </row> tag. Refer below code for reference.