How to Set Text Colors on Fields Using Hex Code

How to Set Text Colors on Fields Using Hex Code

Overview

Partners print Quik! PDFs and send them through their own DocuSign account, where customers fill in the rest of the form. Our pre-filled values print in blue, and text entered in DocuSign is black, so the documents that reach custodians have mixed text colors. Partners need to choose the color prefilled text prints in, so it matches whatever gets added after printing.

/execute/html

When generating a form via an API call using /execute/html, it's possible to set both the HTMLFieldFontColor and the PrintFieldFontColor to be either the same or different colors. In the example below, the former is red, and the latter is black with their respective results displayed:

{
  "HostFormOnQuik": true,
  "QuikFormID": "44249",
  "PrintEditablePDF": true,
  "HTMLFieldFontColor": "#FF0000",
  "PrintFieldFontColor": "#000000",
  "FormFields": [
    {
      "FieldName": "1own.FName",
      "FieldValue": "JOHN"
    },
    {
      "FieldName": "1own.LName",
      "FieldValue": "SMITH"
    }
  ]
}
HTMLFieldFontColor
PrintFieldFontColor

 

/execute/pdf

Please note that the above API payload will not have the HTMLFieldFontColor's hex code value applied when the form is generated; this can be tested by having the returned call's "PDF" Base64 value converted into a viewable pdf using a site like Base64 Guru: