How to hide standard form fields using branding via BoldSign API?

BoldSign supports hiding standard form fields using branding, allowing you to display custom form fields instead. This article will guide you on how to hide standard form fields using branding via the API.

You can hide the standard form fields by setting ShowBuiltInFormFields as false using branding via API.

Here are a few code examples that demonstrate how to hide standard form fields.

Code snippet

curl -X 'POST' \
  'https://api.boldsign.com/v1/brand/edit?brandId=8b115d45-0xxc-4d69-axxc-cfdbb308e095' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'X-API-KEY: {Your API Key}' \
  -H 'Content-Type: multipart/form-data' \
  -F 'ShowBuiltInFormFields=false' \
  -F 'CombineAuditTrail=false' \
  -F 'ShowSharedCustomFields=true' \
  -F 'EmailDisplayName={Your email display name}' \
  -F 'BrandLogo=@{Your file path}' \
  -F 'BrandName={Your brand name}' \
  -F 'IsDefault=false' \
  -F 'CanHideTagLine=true' \
  -F 'AllowCustomFieldCreation=false' \

import requests

url = "https://api.boldsign.com/v1/brand/edit?brandId=8b115d45-0xxc-4d69-axxc-cfdbb308e095"

payload={
'brandName': '{Your Brand Name}',
'ShowBuiltInFormField':'False',
'AllowCustomFieldCreation':'False',
'ShowSharedCustomFields':True,
'emailDisplayName': '{Your email display name}',
'isDefault': 'false',
'canHideTagLine': 'true',
'combineAuditTrail': 'false'
files=[
  ('brandLogo',('file',open('filepath','rb'),'application/jpg'))
]
headers = {
  'X-API-KEY': '{Your API Key}'
}

response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)

const axios = require('axios'); 
const FormData = require('form-data'); 
const fs = require('fs'); 
const form = new FormData(); 
form.append('brandName', '{Your brand name}');
form.append('brandLogo', fs.createReadStream('{your file path}')); 
form.append('emailDisplayName', '{Your email display name}'); 
form.append('isDefault', 'false'); 
form.append('canHideTagLine', 'true'); 
form.append('combineAuditTrail', 'false'); 
form.append('ShowBuiltInFormFields', 'false'); 
form.append('ShowSharedCustomFields', 'true'); 
form.append('AllowCustomFieldCreation', 'false');

async function GetData(){
  try{
const response = await axios.post( 
    'https://api.boldsign.com/v1/brand/edit', 

    form, 
    { 
        params: { 
            'brandId': '8b115d45-095c-4xx9-axxc-cfdbb308e095' 
        }, 

        headers: { 
            ...form.getHeaders(), 
            'X-API-KEY': '{Your API Key}' 
        } 
    } 
); 
console.log(JSON.stringify(response.data));
  return response;
}
catch (error) {
  console.error('Error:', error.message);
  throw error; 
} 
}
GetData();

After executing the code, you can customize the form fields by hiding the standard form fields and displaying only custom fields to the signers through branding.