function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BB 

why closeQuickAction is not working for mobile (issue only on mobile)

is working here 
 cancel: function(component, event, helper) {
        $A.get("e.force:closeQuickAction").fire();
    }

but not here  
 save: function(component, event, helper) {
        
        var action = component.get("c.updateAccRecordType");
        action.setParams({
            "accid": component.get("v.recordId")                   
        });
       
        $A.enqueueAction(action);
      $A.get("e.force:closeQuickAction").fire();
          $A.get('e.force:refreshView').fire();
 

       
    },
Best Answer chosen by B
Raj VakatiRaj Vakati
It’s supported in Lightning Experience and the Salesforce app only.  


Can u try this code

 
save: function(component, event, helper) {
        
        var action = component.get("c.updateAccRecordType");
        action.setParams({
            "accid": component.get("v.recordId")                   
        });
		
		action.setCallback(this, function(response) {
            var state = response.getState();
            if (state === "SUCCESS") {
			$A.get("e.force:closeQuickAction").fire();
			$A.get('e.force:refreshView').fire();
 
		}
        });

		
       
        $A.enqueueAction(action);
    

       
    },

 

All Answers

Raj VakatiRaj Vakati
It’s supported in Lightning Experience and the Salesforce app only.  


Can u try this code

 
save: function(component, event, helper) {
        
        var action = component.get("c.updateAccRecordType");
        action.setParams({
            "accid": component.get("v.recordId")                   
        });
		
		action.setCallback(this, function(response) {
            var state = response.getState();
            if (state === "SUCCESS") {
			$A.get("e.force:closeQuickAction").fire();
			$A.get('e.force:refreshView').fire();
 
		}
        });

		
       
        $A.enqueueAction(action);
    

       
    },

 
This was selected as the best answer
BB
Worked like a charm, thank you