Quality Center / ALM Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Defect field required

SOLVED
Go to Solution
Occasional Advisor

Defect field required

I know how to make a defect field required from beginning of the process but does anyone know how to make a field conditionally required? For example, is there a way to make one of the defect fields required based on the status of the defect? Thanks in advance!
2 REPLIES
Honored Contributor Honored Contributor

Re: Defect field required

Try something like this in the workflow script

Sub Bug_FieldChange(FieldName)
On Error Resume Next
If FieldName = "BG_STATUS" and Bug_Fields("BG_STATUS").Value = "Fixed" then
Bug_Fields.Field("BG_USER_06").IsRequired = True
End If
On Error GoTo 0
End Sub
Occasional Advisor

Re: Defect field required

Thanks Rhonda! That worked perfectly!