I feel like this should be pretty simple but I'm failing to accomplish it. I have a field named Payor and one named Payor Type. When my Payor Type field changes, I want to clear out any value in the Payor field.
I would love to do this OOB instead of through code but I'm not seeing the option to do so. Please correct me if I'm wrong there.
Here's my JS function that I'm trying to use. I'm not great with JS so I'm sure there's something wrong here.
function clearPayorField(executionContext) {
var formContext = executionContext.getFormContext();
formContext.getAttribute("appdev_payor").setValue(null);
}