This can both be done in the page editor.
This is all explained in the rapid developer course:
https://academy.mendix.com/link/paths/31/Become-a-Rapid-Developer