Outdated documentation
The latest documentation was moved to docs.qfield.org
To edit the display expression, go to «layer Properties» => «Display».
The expression used will be what we see when we click on features.