In the dynamic text, change the property to equal <tablename>.<fieldname> where tablename represents the name of the feature class and fieldname represents the field in the index layer that was used for the name of the page. For example:<dyn type="page" property="states.STATE_NAME"/>