Template Editor - ShortcodeTemplate Editor – Shortcode

The Shortcode feature in IDpack Cloud enables you to dynamically insert data from your database fields into badge designs. Enclosed in square brackets (e.g., [firstname]), shortcodes allow you to add personalized content to badges without writing code. By referencing specific database fields, they simplify the creation of dynamic, data-driven designs tailored to your projects.

A shortcode is a specially formatted text tag enclosed in square brackets, like [this]. Shortcodes can be used in multiple sections of IDpack Cloud, including the Static Text tool in the Template Editor and Front / Back Design in the Project Manager tab. Once applied, they automatically retrieve information from your database, ensuring your badge content remains accurate and up to date.

If you require a field that is not included in our library, you can request a custom field here.

How to Use Shortcodes

Shortcodes are enclosed in square brackets and correspond to database field names. For example, [firstname] dynamically inserts the cardholder’s first name, while [level] might insert their security level. This allows you to effortlessly generate customized badge content.

Examples

  • Without HTML:
    Hello [firstname], Welcome to this event. Your security level is: [level]. Enjoy your stay.
  • With HTML:
    Hello <strong>[firstname]</strong>, Welcome to this event. Your security level is: [level]. Enjoy your stay.

Field Definitions Shortcodes (142)

All database fields can be inserted as shortcodes, enabling you to construct complex phrases and paragraphs directly. This flexibility allows you to fully customize the content displayed on your badges.

ShortcodeField DescriptionField Content ExampleField Type
[access]Access4 P 2varchar(75)
[address]Address5555 Pacific Hill Ave, Los Angeles, CA, 90001varchar(250)
[age]Age24decimal(10)
[allergies]Allergieseggs, milk, peanutsvarchar(150)
[apartment_nb]Apartment NumberAAFvarchar(150)
[authorization]AuthorizationR4varchar(50)
[batch]BatchBC234IDvarchar(50)
[birthdate]Birthdate1970-25-04date()
[bloodtype]Blood TypeA RH NEGvarchar(25)
[brand]BrandBrand Namevarchar(75)
[cvv]Card verification value (CVV)524int(4)
[category1]Category #1Colorvarchar(150)
[category2]Category #2Couleurvarchar(150)
[certifying_instructor]Certifying InstructorJohn Malcomvarchar(150)
[city1]CityLos Angelesvarchar(150)
[citystatezip]City State ZipcodeLos Angeles CA 90001varchar(300)
[civic_number1]Civic Number345varchar(150)
[class]ClassAvarchar(75)
[club_id]Club ID4581varchar(150)
[colorcodehex]Color Code - Hex Color279BD2char(6)
[colorcode]Color Code - ID #1int(2)
[colorcodename]Color Code - NameAdministratorvarchar(150)
[cost]Cost187.79decimal(10.2)
[country1]CountryUSchar(30)
[country_name]Country NameUnited Statesvarchar(150)
[course]CourseOnevarchar(250)
[course_date]Course DateJan 17, 2023date()
[coverage_type]Coverage TypeEEvarchar(75)
[currency]CurrencyUSDvarchar(30)
[current_year]Current Year2023varchar(4)
[insdate]Date Added2016-03-19datetime()
[department]DepartmentArtsvarchar(150)
[depth]Depth1.38decimal(10.2)
[description]Description3ft x 3ft Natural Oak Extending Dining Tablevarchar(250)
[division]DivisionFinancevarchar(150)
[driver]Driver's licenseTS-234-34534-103varchar(100)
[email]Email[email protected]varchar(150)
[emergency_contact]Emergency ContactJulie Smith, (345) 555-2342varchar(150)
[employee_id]Employee ID1234varchar(150)
[encryption]EncryptionWPAvarchar(150)
[expirationdate]Expiration Date1998-19-02date()
[eyecolor]Eye colorBrownsmallint(3)
[homefax]Fax Number (Home)213-555-8317decimal(15)
[workfax]Fax Number (Work)213-555-5219decimal(15)
[feature1]Feature #1Oakvarchar(25)
[feature2]Feature #2Rectanglevarchar(25)
[feature3]Feature #3Double Pedestalvarchar(25)
[feature4]Feature #4Butterfly Extensionsvarchar(25)
[feature5]Feature #5Wood and Steelvarchar(25)
[firstname]First NameStevevarchar(150)
[firstlastname]First Name Last NameSteve Smithvarchar(300)
[fullname]Full NameSteve Smithvarchar(300)
[function1]Function #1Journalistvarchar(75)
[function2]Function #2Sportsvarchar(75)
[gender]GenderMaleint(1)
[group]Group102varchar(25)
[haircolor]Hair colorBlacksmallint(3)
[height]Height6.05varchar(15)
[id_number]ID #5678decimal(12)
[injection1]Injection 108/23/2021date()
[injection2]Injection 210/23/2021date()
[issuedate]Issue Date1996-18-02date()
[language1]LanguageENvarchar(30)
[inactivedate]Last Inactive Date2023-01-19datetime()
[lastname]Last NameSmithvarchar(150)
[picturedate]Last Photo ID2018-05-22datetime()
[printdate]Last Print Preview2022-05-22datetime()
[queuedate]Last Print Queue2023-05-03datetime()
[moddate]Last Updated2018-05-20datetime()
[law_9]Law 9varchar(20)
[length]Length15.50decimal(10.2)
[location]LocationBUILDING Avarchar(75)
[medical_state]Medical StateGoodvarchar(50)
[medical_status]Medical Status5varchar(25)
[member_id]Member ID9012varchar(150)
[msrp]MSRP399.95decimal(10.2)
[network_name]Network NameSSIDvarchar(150)
[nickname]NicknameMaverickvarchar(150)
[notes]NotesMy best friend!text(1024)
[nb_cards]Number of Cards2smallint(3)
[order_id]Order ID701-0253509-5186632varchar(50)
[organization]OrganizationACME Example inc.varchar(150)
[parent_fullname]Parent's first and last nameJohn Smithvarchar(250)
[passport]Passport #VG89103varchar(25)
[pw]Password05#Y6NbBeX&?xl#2varchar(150)
[permit_nb]Permit #DR89823489234-CAvarchar(150)
[pin_nb]Personal Identification Number (PIN)4593varchar(150)
[homephone]Phone Number (Home)213-555-8317decimal(15)
[mobilephone]Phone Number (Mobile)213-555-3453decimal(15)
[workphone]Phone Number (Work)213-555-9834decimal(15)
[expirationdate_ppa]PPA Expiration Date1998-19-02date()
[price]Price299.99decimal(10.2)
[pricetype]Price Type/eachsmallint(3)
[productname]Product NameWOW Dining Tablevarchar(75)
[qrcode]QR coded174172a-ab34-4e4a-a88b-2076bd6e0db1a19b901b- ...text(2048)
[race_gender]Race/GenderW/Fvarchar(50)
[rank]RankChiefvarchar(25)
[region]RegionNassau Countyvarchar(150)
[registration_site]Registration Site23varchar(25)
[resident_id]Resident ID3455467varchar(25)
[residential_district]Residential DistrictVenicevarchar(150)
[result]ResultNEGATIVEsmallint(3)
[retraining_date]Retraining DateJan 17, 2024date()
[rfid]RFID5737226704varchar(36)
[rfid_cardtype]RFID Card TypeMIFARE Classicvarchar(25)
[rfid_csn]RFID CSN (Card Serial Number)7820706varchar(75)
[rfid_json]RFID JSON{"type": "MIFARE Classic","csn": "7820706"}varchar(512)
[ship_to]Ship toMontreal, QCvarchar(75)
[shooting_tour]Shooting tourvarchar(60)
[sku]SKUWDT950avarchar(25)
[sport_en]SportOpen Water Swimmingvarchar(150)
[start_date]Start Date2021-03-30date()
[state1]State/ProvinceCAvarchar(150)
[street11]Street #15555 Pacific Hill Avevarchar(150)
[street21]Street #2Suite #734varchar(150)
[task1]Task #1Greetingvarchar(50)
[task2]Task #2Alumni Fairvarchar(50)
[team_name1]TeamAmigosvarchar(75)
[test_date]Test Date09/28/2021date()
[test_name]Test NameCOVID-19varchar(75)
[testing_equipment_make]Testing Equipment MakeBobcatvarchar(150)
[testing_equipment_model]Testing Equipment ModelCompact Track Loadersvarchar(150)
[title1]TitleChief Executive Officervarchar(150)
[tracking_number]Tracking NumberLL 123 2431 34 PCvarchar(75)
[type1]Type #1Mediavarchar(75)
[type2]Type #2Mediavarchar(75)
[key]Unique Key3zaf489f-770e-267d-3185-9cd13855t99rvarchar(36)
[url]Unique URLhttps://www.example.com/?id=234234varchar(250)
[upc]UPC028611000059decimal(12)
[organization_user_nickname]User - NicknameBobbyvarchar(150)
[organization_user_org_loc]User - Org. LocationKingstownvarchar(150)
[organization_user_org_name]User - Org. NameMy Company Name inc.varchar(200)
[organization_user_org_phone]User - Org. Phone784-555-3456varchar(25)
[vaccine]VaccineCOVID-19varchar(50)
[vcard]vCardBEGIN:VCARD ...text(0)
[vip]VIP1int(1)
[warehouse]WarehouseUnit Avarchar(75)
[website]Websitehttps://www.example.comvarchar(250)
[weight]Weight180.50decimal(10.2)
[width]Width2.25decimal(10.2)
[zip1]ZIP/Postal Code90001varchar(15)
[zone]ZoneArea 51varchar(75)

Custom Shortcodes

IDpack Cloud supports a range of additional custom shortcodes that provide enhanced flexibility:

  • [id] – The record ID number. Example: 5678
  • [organization_name] – The name of the organization managing the account. Example: ACME Example Inc.
  • [firstlast_name] – Combines [firstname] and [lastname] into one shortcut. Example: Steve Smith
  • [colorcodename] – Displays the text name of the Color Code assigned to the record. Example: Administrator
  • [year] – Displays the current year. Example: 2025