Hello People,
I have a Quick Create form in a model driven application.
A user has a choice, and depending on the choice, I set the visibility of a 2 lookup fields.
The issue is, if the person selects a value in a look up, but changes their mind and changes the choice, that look up field value remains...
How can I clear this field?
if (selectedValue !== 848660000) {
// Case when selectedValue is not 848660000
generalRevenueSourceControl.setVisible(false);
generalRevenueSourceControl.getAttribute().setValue(null); // I need to clear the lookup field value
grantSourceControl.setVisible(true);
} else {
// Case when selectedValue is 848660000
generalRevenueSourceControl.setVisible(true);
generalRevenueSourceControl.getAttribute().setValue(null); // I need to clear the lookup field value
grantSourceControl.setVisible(false);
}