Add sandbox detection for foreign key page fields