The Contact details are picked up from Edit | Form Options | Contact for Queries tab.