You have a section in your report template that needs to show a section based on a selection. You do not want to show all the options, just the one relevant.
You can use VPDel blocks to conditionally remove a section of a Report Template based upon the value of a field in the current valuation job.
At the beginning of the section you would like conditionally deleted, insert the MergeField VPDelStart:Valuations.ActualFieldName_Condition_ConditionValue where:
- ActualFieldName is the Actual Field Name of the field to evaluate the condition against
- Condition is a condition found on the List of VPDel conditions
- ConditionValue is the value to evaluate Valuations.ActualFieldName against
At the end of the section you would like conditionally deleted, insert the same MergeField inserted in Step 1 but replacing VPDelStart with VPDelEnd. Everything between the Start and End tags will be deleted if the condition evaluates to true.
Have a look at the attached document to see an example of VPDel in action.
Never put a VPDel code line in the same line as another VPDel line. This will make it not work as expected. They can however, work on the same line as other normal merge fields.
Always put them on their own in your report template.
See Heading 2 where there are 2 VPDel tags, one to end the previous one and one to start the next. Place the following VPDel on its own line by separating them with the enter key.
If you need any help, let us know by submitting a support ticket.