setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
249 stars 55 forks source link

Hiding unused Support Variables #99

Closed GadgetGeekNI closed 1 year ago

GadgetGeekNI commented 1 year ago

Adding If switches to only include existing support values. My use case here is that I don't have either KB articles or a support cell phone number that would work here.

Hopefully this proves useful going forward in accommodating other similar use cases.

With values: image image

Without Values: image image

dan-snelson commented 1 year ago

Thanks, @GadgetGeekNI!

Reviewing now; should we completely disable the highlighted sentence when the related variables are blank?

# IT Support Variables - Use these if the default text is fine but you want your org's info inserted instead
supportTeamName=""
supportTeamPhone=""
supportTeamEmail=""
supportKB=""
supportTeamErrorKB=", and mention [${supportKB}](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=${supportKB}#Failures)"
supportTeamHelpKB="\n- **Knowledge Base Article:** ${supportKB}"
Screenshot 2023-09-14 at 10 21 23 AM

If you need assistance, YOYO!

dan-snelson commented 1 year ago
# IT Support Variables - Use these if the default text is fine but you want your org's info inserted instead
supportTeamName="supportTeamName"
supportTeamPhone=""
supportTeamEmail="rescueme@domain.com"
supportKB=""
supportTeamErrorKB=", and mention [${supportKB}](https://servicenow.company.com/support?id=kb_article_view&sysparm_article=${supportKB}#Failures)"
supportTeamHelpKB="\n- **Knowledge Base Article:** ${supportKB}"
Screenshot 2023-09-14 at 10 33 45 AM Screenshot 2023-09-14 at 10 34 10 AM Screenshot 2023-09-14 at 10 34 23 AM