Hi AR,
I think there is possibility to achieve this. Just register a OnSave method on the form. Call the BPF change method based on OptionSet field.
var=formContext.getattribute(OptionSet);
if var=xxx
then
In order to achieve this, you have to use the methods formContext.data.process.moveNext and formContext.data.process.movePrevious so you can move back and forth in the active BPF of the form.
function moveBPFToNextStage(context) {
var formContext = context.getFormContext();
formContext.data.process.moveNext();
}
function moveBPFToPreviousStage(context) {
var formContext = context.getFormContext();
formContext.data.process.movePrevious();
}
Besides, you can consider using workflow as well to better meet your requirement.