When adding fields to a page - have an option which ensures that if you want to prepopulate it that it automatically sets the correct field ids.