I have a button that runs the following snippet below.
How to I enable and disable the second multiple action based on the if statement below, which just opens a URL?
var AllMortgageModel = skuid.model.getModel(‘AllMortgage’);
var row_id = AllMortgageModel.data[0].Id;
var request_type = AllMortgageModel.data[0].Request_Type__c;
if (!request_type){
alert(‘You must select a Request Type’);
}
else{
alert(row_id);
alert(request_type);
//Close the Popup
skuid.$(‘.ui-dialog-content’).dialog(‘close’);
}