Hi,
I have issue with making field required or recommend or optional in business process flow stages.
In Case record i have two business process flows they are primary stage and alternate stage.
I have four field in both business process flow stage and also on case form they are:
- case Type
- Account
- Contact
On change of field case type to alternate now changing primary business process flow to alternate business process flow and making email as required account field as recommend, this action should happen in business process flow form only not on case form.(.i.e - on case form email becoming required and account recommend, i don't want this two fields to be changed on case main form they should be optional as initial).
i have used below javascript code on change of case type field:-
formContext.getControl("header_process_new_email").getAttribute().setRequiredLevel("required");
formContext.getControl("header_process_new_account").getAttribute().setRequiredLevel("recommended");
This code is working fine in BPF form but should not impact on case main form.
Is there any other solution to handle this issue please let me know.
Thanks,