Skip to main content

Hi, I am using a suppress tag to only show the discount row when there is a discount but its not working when the value of the discount is greater than zero. It hides the row when the discount is zero but does not show when there is a discount. What am i doing wrong?

<# <SuppressTableRow Select="/Account/SC_Discount_Rate__c" Match="0%" /> #>

Hello ​@Stacci,


Thank you for reaching out, and welcome to the Docusign Community! We appreciate your question and assure you that we are fully committed to providing you with the best service possible. 

 

There are couple of ways you can do this, either use a <# <SuppressTableRow Test="> #> instead of using <# <SuppressTableRow Select="> #>  you may use the text() function to specify the value. It would look something like <# <SuppressTableRow Test="/Account/SC_Discount_Rate__c[text() = '0%']"/> #>.Or if you want to use the Select have them try <# <SuppressTableRow Select="Suppress" Match="True" /> #>

 

For future reference, kindly check this relevant article for guidance. Gen XML Toolbox: Learn to Use Custom XML in Your Word-Based Gen Template

You can use custom XML in your template to add tables, filter and group data, add conditional logic, and more. XML tags in Word-based Gen templates merge Docusign and Salesforce fields into a generated agreement.

Gen merge tags (<Content> , <TableRow>, <Conditional>, and so on) use XPath to read extracted XML data. XPath is an XML query language.

You can also build custom XML/XPath tags in your Word template to add tables, filter data, group data, add conditional logic, and more.

How Docusign uses XML in Gen

You start building a Word-based Gen template. You create a Word document containing Docusign and Salesforce fields that you pasted from the Gen template.

You upload the Word document to the Gen template and add a Gen button to your Salesforce layouts.

A user selects the Gen button on a record. Docusign uses an API call to send Docusign and Salesforce XML data from your template to a Docusign server.

The Docusign server creates the finished contract by merging the XML data with the template document. Docusign sends the finished agreement back to Salesforce.

Using XML in Gen templates

  • The tags that you create in Gen and place in a Word or PDF document always reference Salesforce XML nodes.
  • You can reference a single node by using array syntax for expressions that evaluate to multiple nodes. Example: //Opportunity//OpportunityLineItems[1]/Description
  • Gen currently only supports XPath 1.0.
  • Docusign does not support XSLT-specific functions.
  • You can concatenate strings with XPath. Example: concat(//Opportunity/Account.Name, ' - ', //Opportunity/Name)
  • You can use all merge tags from Docusign CLM and Legacy Docusign CLM (SpringCM) in Gen templates.

XML options you can use in a Gen template

Review the following options for adding custom XML to your Word-based Gen template:

If you found the response to be a useful solution to your question, please mark it as the best answer by clicking “Select as Best” to make it easier for other users to find. Thank you!

 

Best regards,

Ma. Cassandra | Docusign Community Moderator

"Select as Best" below if you find the answer a valid solution to your issue


Hello ​@Stacci,

 

I hope you are doing well. 

I want to confirm if you were able to solve your issue by utilizing the suggested solution or if the information provided was useful.

Let me know, and I will gladly help you address the situation as soon as possible.


Best regards,
Ma. Cassandra | Docusign Community Moderator

"Select as Best" below if you find the answer a valid solution to your issue!