function submitHero(Id) {
  var elemAttributes = $(Id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-attributes"]');
  var elemSessions = $(Id).parents('.slds-tabs_default__content');
  validateHero(elemAttributes);
  if($(elemAttributes).find('.slds-form-element.slds-has-error').length==0){
    var products = pickExtraItems(elemSessions);
    buildHeroEvents(elemAttributes, elemSessions, products);
    enableButton();
  }
}
// Function triggered on button to generate events
Function triggered on button to generate events
Function triggered on button to generate events
function submitHero(Id) {
  var elemAttributes = $(Id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-attributes"]');
  var elemSessions = $(Id).parents('.slds-tabs_default__content');
  validateHero(elemAttributes);
  if($(elemAttributes).find('.slds-form-element.slds-has-error').length==0){
    var products = pickExtraItems(elemSessions);
    buildHeroEvents(elemAttributes, elemSessions, products);
    enableButton();
  }
}
function submitHero ( Id ) { var elemAttributes = $ ( Id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="section-user-attributes"]' ) ; var elemSessions = $ ( Id ) . parents ( '.slds-tabs_default__content' ) ; validateHero ( elemAttributes ) ; if ( $ ( elemAttributes ) . find ( '.slds-form-element.slds-has-error' ) . length == 0 ) { var products = pickExtraItems ( elemSessions ) ; buildHeroEvents ( elemAttributes , elemSessions , products ) ; enableButton ( ) ; } }
Function triggered on button to generate events
Function triggered on button to generate events