I have a lookup fields Deal, Account and Lead in Subform, I am checking if its null or not
If its null It shows an error, but when I select some value for the Lookup Field it doesn't clear the error , for other fields such as single line or pickup etc. it clears the error
Is it a client script bug or issue with my code I am not sure
My use case is the user has to enter data in atleast one field Deal, Account or Lead
var subform = ZDK.Page.getSubform('Meeting_Details');
var subform_length = subform.getValues().length;
for (var i = 0; i < subform_length; i++) {
var row = subform.getRow(i); // Get row object
var dealValue = row.getCell("Deal").getValue();
var leadValue = row.getCell("Lead").getValue();
var accountValue = row.getCell("Account").getValue();
var activityDetail = row.getCell("ActivityDetail").getValue();
log(dealValue);
if (dealValue == null) {
var dealCell = row.getCell("Deal");
dealCell.showError("Empty Deal");
}
log(activityDetail);
if (activityDetail == null) {
var activityCell = row.getCell("ActivityDetail");
activityCell.showError("Empty Activity");
}
}
Moderation Update: I'm locking this post as this issue has been resolved and is live across all the DCs.
If you need further clarification, feel free to start a new topic.