Skip to main content
Legacy User
April 2, 2019
Solved

Conditional Formatting - Salesforce/Conga Composer/Docusign Integration

  • April 2, 2019
  • 15 replies
  • 333 views

I can't seem to get an answer from Conga or Docusign on this - so hopefully the community will help!

We are sending a DS document that is sent via Conga Composer in Salesforce. Is there a way to add conditional formatting to the document (for example: make a field required if another field equals "yes")?

I know this works if you send the document directly from DocuSign, but we are sending it via a Conga button in Salesforce using the Docusign Parameters... Thoughts???

Best answer by Community Expert

 

I'll get you started on the script and where you can go to get the education to do a lot of the work. I can then help you with troubleshooting your script.

  1. Get the sample button code that DocuSign provides here:
  2. Save this via a text/code editor in your personal code repository as a .js file.
  3. Login to DocuSign and navigate to your Template to get the Template ID:
  4. Copy this Template ID
  5. Open your sample button code in your text/code editor and search for the following: DST = '';
  6. Enter a new line before this text so that it is now on its own line
  7. Paste your Template ID
  8. Save your file. You now have the Template ID to reference during your sending

As to the conditional logic, you can learn about JavaScript conditional logic here: https://www.w3schools.com/js/js_if_else.asp

You can read about how to reference Salesforce objects and fields here: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_access.htm#!

You'll also need to map Salesforce fields to DocuSign Merge Fields for Salesforce. You can read about how to do this here: https://support.docusign.com/guides/dfs-user-guide-create-merge-fields-user

You can read about how to add these new Merge Fields to your Template here:

Once you have these steps completed and have a button script, post it here and I'll help you further.

Good luck and talk again soon.

   

Take care,

Arash Sayadi

 

15 replies

Legacy User
May 6, 2020

Thanks, yes I reached out again to DocuSign support and they confirm, the only way to do conditional fields is in DocuSign templates.

Shame

Legacy User
May 7, 2020

Well. On the upside, you know what doesn't work.

Is there any way you can do this in Conga?

Legacy User
May 7, 2020

No you can't do conditional fields in the way I require them. i.e if one is checked in docusign, the other becomes available to populate. That is a dousing feature

Legacy User
May 7, 2020

Yeah. I like the conditional fields and routing in DS.

What you're trying to do would require the logic of conditional fields to be exposed via the DocuSign embedded tags in Salesforce. I think this is an interesting idea.

If nothing else, you should reach out to your DocuSign Account Manager and suggest that as a product improvement.

Legacy User
May 7, 2020

Yeah thats exactly what Im after. Would be cool