Skip to main content

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.datad0].Id;
var request_type = AllMortgageModel.datad0].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’);
}

Be the first to reply!

Reply