We report on a multi-technique investigation of the supramolecular organisation of N,N-diphenyl oxalic amide under differently dimensioned environments, namely three-dimensional (3D) in the bulk crystal, and in two dimensions on the Ag(111) surface as well as on the reconstructed Au(111) surface. With the help of Xray structure analysis and scanning tunneling microscopy (STM) we find that the molecules organize in hydrogen-bonded chains with the bonding motif qualitatively changed by the surface confinement. In two dimensions, the chains exhibit enantiomorphic order even though they consist of a racemic mixture of chiral entities. By a combination of the STM data with near-edge X-ray absorption fine-structure spectroscopy, we show that the conformation of the molecule adapts such that the local registry of the functional group with the substrate is optimized while avoiding steric hindrance of the phenyl groups. In the low coverage case, the length of the chains is limited by the Au(111) reconstruction lines restricting the molecules into fcc stacked areas. A kinetic Monte Carlo simulated annealing is used to explain the selective assembly in the fcc stacked regions.