Run multiple Actions on button click

  • 1
  • Question
  • Updated 4 years ago
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');
}
Photo of Eddie

Eddie

  • 720 Points 500 badge 2x thumb

Posted 4 years ago

  • 1

Be the first to post a reply!