Quality Center / ALM Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Defect field required

SOLVED
Go to solution
Highlighted
Lynn Thompson2
Occasional Contributor

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
Rhonda Robinson
Honored Contributor
Solution

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
Lynn Thompson2
Occasional Contributor

Re: Defect field required

Thanks Rhonda! That worked perfectly!
//Add this to "OnDomLoad" event