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.
Prerequisites
- Merge fields
- Master user access
- Understanding conditional code
Step 1
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
Step 2
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 is met.
Tip:
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.
Sample:
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 or prefer us to do this for you as a paid customisation service, please let us know by submitting a support ticket.
Have a look at the attached document to see an example of VPDel in action.