Defect field required (46 Views)
Reply
Occasional Advisor
Lynn Thompson2
Posts: 13
Registered: ‎08-21-2009
Message 1 of 3 (46 Views)
Accepted Solution

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!
Honored Contributor
Rhonda Robinson
Posts: 3,159
Registered: ‎11-13-2007
Message 2 of 3 (46 Views)

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
Lynn Thompson2
Posts: 13
Registered: ‎08-21-2009
Message 3 of 3 (46 Views)

Re: Defect field required

Thanks Rhonda! That worked perfectly!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.