Wordpress ACF Populating text field values from a relationship

Job ID: 31016785

Budget: $30 – $250 USD

Hello,
I have a custom post type books with some ACFields.
I need in options page, some text fields automatically populated when the admin selects a book within relationship field, based on the book which is selected; such as title, excerpt and some other ACFields.
These data will be filled in the text or textarea fields and the admin may modify them there before publishing in the options page.
I assume that it will need a function and an ajax js but I'm not sure how to do it. Described in screenshots, please look.
Related categories: PHP JavaScript AJAX WordPress