php - how to send html formatted text to text filed in template docusign?

one text

Solution:

The DocuSign text fields can only handle plain text, not HTML.

But good news: that includes all Unicode characters including Unicode bullet points such as this triangular bullet point: ‣

So your application can add bullet points to DocuSign text fields.

As an alternative, your application could create a custom document for the envelope in addition to or instead of the template's document(s).

You could create the additional document using HTML or create a PDF document on the fly.

Added (and updated)

Tested! It works! To add a new line, I add new line character to the text tab's value.

If your computer language interpolates character sequences, that'd be

value = "‣   line 1\n‣   line 2"

Working Node.JS example:

    ...
    let textTab1 = docusign.Text.constructFromObject({
        anchorString: "/sig1/",  
        anchorXOffset: "120",  
        height: "30",  
        value: "‣   line 1\n‣   line 2",  
        width: "120" 
        });
    let textTabs1 = [textTab1];
    let tabs1 = docusign.Tabs.constructFromObject({
        signHereTabs: signHereTabs1,  
        textTabs: textTabs1 
        });
    ...

Result (screenshot):

screenshot showing two lines of text in text tab

Source