Thank you very Much for the reply. I followed your advise, but it does not seem to be working. I am sure I am making a mistake. My Bug_FieldChange workflow code looks like this
Sub Bug_FieldChange(BG_USER_01)
On Error Resume Next
If Bug_Fields("BG_USER_01").Value = "Task" Then
Bug_Fields("BG_USER_O4").IsRequired = False
Else
Bug_Fields("BG_USER_O4").IsRequired = True
End If
On Error GoTo 0
End Sub
Now, I saved this ,logged out of QC, Logged back in and then I went ahead and clicked on "New Defect", and when i select the Defect Type field, which is BG_USER_01 as "Task", The Field "BG_USER_04" is still Mandatory and HP ALM- QC Edition does not allow me to create the defect by giving a pop-up saying that this BG_USER_04 field is Mandatory and that I have to fill it.
Will you be able to kindly help me further by letting me know what am I missing here please?
Jan Czajkowski wrote:There are several customers that use the Defects module for task tracking, so you are not alone.
And you can set fields as required or non-required from the Defects workflow, depending on the value of other fields. You will need to do this both from Bug_FieldChange and Bug_MoveTo.
An example:
If Bug_Fields("BG_USER_01").Value = "Task" Then 'Assuming this is your type field Bug_Fields("BG_USER_02").IsRequired = False Else Bug_Fields("BG_USER_02").IsRequired = True End If