Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. var getId = cmp.get("c.GetContactData");
  2.  
  3. getId.setParams({onlineFormId : cmp.get("v.onlineFormId")});
  4.  
  5. //for error checking or future logic
  6. getId.setCallback(this, function(response) {
  7. var state = response.getState();
  8. if (state === "SUCCESS")
  9. {
  10. //console.log('success');
  11. cmp.set('v.contactList', JSON.parse(response.getReturnValue()));
  12. }
  13. else
  14. {
  15. //console.log(response.getError());
  16. }
  17. });
  18.  
  19. $A.enqueueAction(getId);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement