Hello,
So I have a BPF with a couple fields in the first stage of BPF which I want to hide when the form is opened. They should remain hidden until a field in first stage of BPF is filled in. Based on what is entered, one of the hidden fields will become visible and then further options would be chosen for the field which has become visible.
My problem is hiding the fields when the form loads. I used a quick script to hide them which works. <<formContext.getControl('header_process_fieldname').setVisible(false);>>
Next, I use business rules to display the hidden fields based on what is chosen. That works too. But when the hidden field is displayed and filled in, and I refresh the page - the hidden field which was just filled in disappears again (I am guessing the script kicks in again).
I also deactivated the business rule and reactivated it after putting the script in place (keeping in mind the latest business rule operates first).
How do I go about this? Is there any issue with the ordering?
Thank you