Get text from template

I want to get text from a selected template in a field and fill a text editor field. As in “Terms and Conditions” of the sales order.
Can someone describe me the steps to follow please.
Thanks in advance.

Fernando

You can try to use the get_terms function from utils.js file in the path apps/erpnext/erpnext/public/js/

I can now populate the text editor field from the template, but I did not replace the template fields with form data.
{{ name }}
{{ customer_name }}
I need help to complete this functionality, thanks in advance for any help.

Fernando

Helllo @Fernando_Sanchez1

where you able to solve this ?