I have a situation where I have to make a mandatory field "Detected in release" as non-mandatory on the selection of another field "Origin = XYZ". I have written the below piece of code within "Bug_FieldChange" function and if user selects "Origin = XYZ" then "Detected in release" is set as blank.
Origin = DTL_DEF_ORIGINATOR
Detected in release = DTL_DEF_DETECTED_IN_CYCLE
if (FieldName = DTL_DEF_ORIGINATOR) then
if Bug_Fields.Field(DTL_DEF_ORIGINATOR).Value = "XYZ" then
Bug_Fields.Field(DTL_DEF_DETECTED_IN_CYCLE).Value = ""
Problem occurs when submit button on the defect screen is clicked, system pop-ups and ask the user to fill value in the "Detected in release" field. Can anyone advise me "How can I make this mandatory field as non-mandatory on the field change.
Note: "Detected in release" is a system field & mandatory too, though I have unchecked the 'Required' option in the project entities.