Share this page

# Example: Adding a template to a memo field

You can use workflow scripts to add a default template to a memo field. This example adds text to a memo field called Business Case to display the following template:

Perform this customization by placing the HTML code for the text into the BG_USER_25 field when a defect is added. This example assumes that the user-defined field BG_USER_25 stores a business case string.

Add the code to the `Bug_New` event procedure, which is triggered when a user adds a new defect.

VBScript example (supported in Desktop Client only)

Copy code

    Sub Bug_New
            On Error Resume Next
            Bug_Fields("BG_USER_25").value = _
            "<html><body><b>Step by step scenario:</b>" & _
            "<br><br><br><b>How it affects the user:</b></body></html>"
            PrintError "Bug_New"
            On Error GoTo 0
    End Sub

Back to top

https://admhelp.microfocus.com Application Quality Management 8942
Tips to improve your search results... OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help 26.1 All View Local Help Center View Online Help Center Version: