We have one user define field in design step's dialog box i want to make that field required so what i did is not working could you please help me out on this issue
Function TestPlan_DesignStep_FieldCanChange(FieldName, NewValue)
On Error Resume Next
Step_Fields.field("ST_USER_01").IsRequired = true
TestPlan_DesignStep_FieldCanChange = Project_DefaultRes
On Error GoTo 0
It's my understanding that "xxxx_FieldCanChange" is the function that checks whether an entity maybe modified by [user], rather than where the display properties etc are set.
This means that the routine will be called when a user attempts to modify the value in that field. if they don't try to modify it, your code will not be run, and the field won't be mandatory.
If you *really* didn't want to follow Rich's sound advice, put the code into 'TestPlan_Test_New'. That way the field properties will be set every time the user creates a new test.
I haven't done a huge amount of workflow customisation in the TestPlan module, so I can't be sure that the field will be mandatory for an existing test, but the value will at least be set on creation...