How do you make the Survey Comment field required on a CA SDM survey?

Document ID : KB000095197
Last Modified Date : 25/05/2018
Show Technical Document Details
Question:
How do you make the Survey Comment field required on a CA SDM survey? 
Environment:
CA Service Desk Manager 14.1 and 17.x
All Supported Operating Systems
Answer:
You will need to follow these steps to make the Comment box on the Survey form required: 

1. Open Web Screen Painter (WSP) 

2. Login with a CA SDM Administrator account 

3. Open the DO_SVY.HTMPL file (it is located under the DEFAULT file type) 

4. On the SOURCE tab, locate the following section near the end of the file 

<!-- This spot is for extra user comments, if so 
specified by the survey template. The user comments 
MUST be in an input control named "SVY_COMMENT". --> 
<PDM_IF $args.include_comment> 
<table id="tbl001" cellspacing="7" width="70%"> 
<tr> 
<td valign="top" class="labeltext" style="font-weight:bold;font-size:0.7em;"> 
<label for=SVY_COMMENT>$args.comment_label</label> 
</span> 
</td> 
</tr> 
<tr> 
<td>
<textarea id="$args.comment_label" name=SVY_COMMENT value="" rows="5" cols="40" maxlength="1000"> 
</textarea> 

5. Change this section to the following 

<!-- This spot is for extra user comments, if so 
specified by the survey template. The user comments 
MUST be in an input control named "SVY_COMMENT". --> 
<PDM_IF $args.include_comment> 
<table id="tbl001" cellspacing="7" width="70%"> 
<tr> 
<td valign="top" class="labeltext" style="font-weight:bold;font-size:0.7em;"> 
<label for=SVY_COMMENT>$args.comment_label</label> 
</span> 
</td> 
</tr> 
<tr> 
<td>
<textarea id="$args.comment_label" name=SVY_COMMENT value="" rows="5" cols="40" maxlength="1000" required="yes"> 
</textarea> 

6. Save and publish changes in Web Screen Painter 

7. Run the following commands on the SDM server 

pdm_webcache 
pdm_webcache -b 

8. Clear web browser cache 

Now when a survey is sent, end users will not be able to submit the survey unless a comment is entered.
Additional Information: