Skip to main content
Question

Docusign Gen conditional display using a Salesforce checkbox field

  • August 22, 2025
  • 4 replies
  • 107 views

MikeV
New Voice
Forum|alt.badge.img

I am working with Docusign Gen Templates that will integrate with Salesforce CPQ quote fields.  I am trying to display address text on document based on the client address. If the client is in the USA I want to display the company’s US address.

There is a formula checkbox that is intended to trigger visibility ("/SBQQ__Quote__c/US_Account__c" ). I have tried multiple versions to get this working but they all result in error messages that change from time to time. Using this checkbox field, how should I enter it on the Word document?

found and tried the following:

But received this:

 

4 replies

Forum|alt.badge.img+13
  • Community Moderator
  • 1120 replies
  • August 26, 2025

Hello ​@MikeV 
If you are using Docusign Gen, you can use conditional tags to display or hide content based on specific criteria, such as the client's location:

See details below for your reference.
Learn About Using Conditional XML in the Test Attribute for Check Boxes, Picklists, and Fields

You can add conditional logic blocks to Gen template Anchor Text Tags. Conditional logic creates "if-then" statements that add or exclude text from a generated agreement. You can also use conditional logic with checkboxes, picklists, fields, and more.

Important: Content is case-sensitive.

Check box example:

Only display content if a check box field is marked True:

<# <Conditional Test="//Opportunity/HasOverdueTask[text() = 'True']" />
#>CONDITIONAL CONTENT HERE<# <EndConditional /> #>

 

Picklist examples

  • Option 1: Only display content if a multi-picklist contains certain values:
     
    <# <Conditional Test="//Opportunity/Preferred_Color__c[contains(., ‘Green;Blue’)]" /> #>
  • Option 2: Only display content if a multi-picklist contains certain values:
     
    <# <Conditional Test="//Opportunity/Preferred_Color__c[text() = ‘Green;Blue’]" /> #>

Field examples

  • Only display content if a field matches certain values:
     
    <# <Conditional Test="//Opportunity/Type[text() = 'New Customer' or text() = 'Existing Customer']"
    /> #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>
  • Only display content if two fields match certain values:
     
    <# <Conditional Test="//Opportunity/Type[text() = 'New Customer'] and //Opportunity/Industry[text() =
    'Technology']" /> #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>
  • Only display content if at least one item matches some value:
     
    <# <Conditional Test="count(//Quote//QuoteLineItems/Base_Product__c[text() = 'Digital Display']) > 0" />
    #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>
  • Only display content if at least one item contains certain values:
     
    <# <Conditional Test=“count(//Opportunity//OpportunityLineItems/Name[contains(., ‘Product XYZ’)
    or contains(., ‘Product ABC’)]) > 0” /> #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>
  • Only display content if one field (Field 1) is empty and another (Field 2) is not empty:
     
    <# <Conditional Test="not(//Opportunity/Field_1__c/text()) and //Opportunity/Field_2__c/text()"/>
    #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>

 

If you have questions or need more help, Please open a support case so our Specialized agent can review the current workflow 👉 Open a Support Case

In the meantime, here are some helpful resources:

Learn About Using Table Row XML Tags in Gen to Import Salesforce Data

Add Conditional Logic to a Gen Template to Show or Hide Content

Learn About Adding Conditional Logic to a Gen Template Word Document


Sincerely,

Ma. Cassandra | Docusign Community Moderator

If this helped, feel free to Like👍and click "Best Answer"

 

Forum|alt.badge.img+13
  • Community Moderator
  • 1120 replies
  • September 11, 2025

Hello ​@MikeV 

How are you? I'm checking in to see if you still need assistance. If yes, kindly reply here with more context or confirm if the issue has been resolved. 

If you run into any problems, we're happy to help with those here. Wishing you a smooth rest of your day!

 

Sincerely,

Ma. Cassandra | Docusign Community Moderator

If this helped, feel free to Like👍and click "Best Answer"


MikeV
New Voice
Forum|alt.badge.img
  • Author
  • New Voice
  • 1 reply
  • October 14, 2025

Hello, sorry I didn’t see the response until now. I am new to the community and did not see that there was a response. 

Thank you. Yes, that issue is now resolved.  I just created another question regarding a currency field that is greater than 0.  Do you have a suggestion for that?  


Forum|alt.badge.img+15
  • Community Moderator
  • 1499 replies
  • October 17, 2025

Hi ​@MikeV,

Thanks for the confirmation. Glad it worked! We would greatly appreciate it if you could give the suggested solution a like👍and mark it as "Best Answer" ✅, to help other community members find trusted answers and follow similar steps.😊

 

Regarding the other question, we responded to your inquiry in another thread you posted 👉 DocuGen Conditional Select/Test using a currency field. We kindly request that you reply to that thread to confirm whether the solution works or if you still need further assistance. Thank you!

 

Regards,

Melanie | Docusign Community Moderator