function restartHero(id) {
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-method"').find('div[aria-label]').addClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-method"]').removeClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-attributes"]').addClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-sessions"]').addClass('slds-hide');
  $(id).parents('.slds-dropdown-trigger_click').removeClass('slds-is-open');
  $(id).parents('.slds-tabs_default__content').find('input').val('');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="hero-custom-attributes"]').children('.slds-col').remove();
  $('.slds-visual-picker input:checked').prop('checked', false);
  $('.slds-has-error').removeClass('slds-has-error');
  $('.slds-form-element__help').addClass('slds-hide');
}
// Go back to the start of a hero build
Go back to the start of a hero build
Go back to the start of a hero build
function restartHero(id) {
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-method"').find('div[aria-label]').addClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-method"]').removeClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-attributes"]').addClass('slds-hide');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="section-user-sessions"]').addClass('slds-hide');
  $(id).parents('.slds-dropdown-trigger_click').removeClass('slds-is-open');
  $(id).parents('.slds-tabs_default__content').find('input').val('');
  $(id).parents('.slds-tabs_default__content').find('div[aria-label="hero-custom-attributes"]').children('.slds-col').remove();
  $('.slds-visual-picker input:checked').prop('checked', false);
  $('.slds-has-error').removeClass('slds-has-error');
  $('.slds-form-element__help').addClass('slds-hide');
}
function restartHero ( id ) { $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="section-user-method"' ) . find ( 'div[aria-label]' ) . addClass ( 'slds-hide' ) ; $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="section-user-method"]' ) . removeClass ( 'slds-hide' ) ; $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="section-user-attributes"]' ) . addClass ( 'slds-hide' ) ; $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="section-user-sessions"]' ) . addClass ( 'slds-hide' ) ; $ ( id ) . parents ( '.slds-dropdown-trigger_click' ) . removeClass ( 'slds-is-open' ) ; $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'input' ) . val ( '' ) ; $ ( id ) . parents ( '.slds-tabs_default__content' ) . find ( 'div[aria-label="hero-custom-attributes"]' ) . children ( '.slds-col' ) . remove ( ) ; $ ( '.slds-visual-picker input:checked' ) . prop ( 'checked' , false ) ; $ ( '.slds-has-error' ) . removeClass ( 'slds-has-error' ) ; $ ( '.slds-form-element__help' ) . addClass ( 'slds-hide' ) ; }
Go back to the start of a hero build
Go back to the start of a hero build