Hi Priya,
The only way to do this as far as I'm concerned to use custom JavaScript on Form Load. First, you have to get GUID of your BPF and check its GUID then you have to check GUIDs of each stage via web API. when you have the id of your at which you want to enable that field you need first disable it likes so:
function onLoad(ctx) {
const formContext = ctx.getFormContext();
const idOfyourStage = '<your stage id here>';
const logicalNameOfYourField = 'header_process_<your field logical name>';
// gets current Active Stage Id
const activeStageId = formContext.data.process.getActiveStage().getId();
// disable your field
formContext.getControl(logicalNameOfYourField).setDisabled(true)
// check if id of a stage is where you should unlock that field
if (activeStageId === idOfyourStage) {
formContext.getControl(logicalNameOfYourField).setDisabled(false)
}
// Here you need to basically duplicate your logic, as the code above works on page refresh. When the user changes BPF stage, the code below will run
formContext.data.process.addOnStageChange((ctx) => {
// duplicate code above to run on each BPF stage update
}
}
Hope this helps.
Regards,
Konrad