Designer - ShortcodeDesigner – Shortcode

The Shortcode feature in IDpack allows you to dynamically insert data from database fields directly into your badge design. Shortcodes are enclosed in square brackets, for example [firstname], and are added using the Text Tool in Designer. When a badge is printed, shortcodes automatically retrieve and display information from the project data, ensuring badges remain accurate and up to date.

If a required field is not available in the standard library, you can request a custom field.

How to Use Shortcodes

Shortcodes correspond to database field names and are always enclosed in square brackets. For example, [firstname] inserts the cardholder first name, while [level] can display a security level or access classification. This approach allows you to build data driven badge designs without writing any code.

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 (130)

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
[ac_id]AC ID34535varchar(25)
[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)
[category1]Category #1Colorvarchar(150)
[category2]Category #2Couleurvarchar(150)
[certifying_instructor]Certifying InstructorJohn Malcomvarchar(150)
[city1]CityLos Angelesvarchar(150)
[civic_number1]Civic Number345varchar(150)
[class]ClassAvarchar(75)
[club_id]Club ID4581varchar(150)
[cost]Cost187.79decimal(10.2)
[country_name]Country NameUnited Statesvarchar(150)
[country1]CountryUSchar(30)
[course]CourseOnevarchar(250)
[course_date]Course DateJan 17, 2023date()
[coverage_type]Coverage TypeEEvarchar(75)
[currency]CurrencyUSDvarchar(30)
[current_year]Current Year2023varchar(4)
[cvv]Card verification value (CVV)524int(4)
[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()
[expirationdate_ppa]PPA Expiration Date1998-19-02date()
[eyecolor]Eye colorBrownsmallint(3)
[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)
[fullname]Full NameSteve Smithvarchar(300)
[function1]Function #1Journalistvarchar(75)
[function2]Function #2Sportsvarchar(75)
[gender]GenderMaleint(1)
[grade]Grade9th – Freshmanvarchar(75)
[group]Group102varchar(25)
[haircolor]Hair colorBlacksmallint(3)
[height]Height6.05varchar(15)
[homefax]Fax Number (Home)213-555-8317decimal(15)
[homephone]Phone Number (Home)213-555-8317decimal(15)
[injection1]Injection 108/23/2021date()
[injection2]Injection 210/23/2021date()
[issuedate]Issue DateSep 04, 2024date()
[language1]LanguageENvarchar(30)
[lastname]Last NameSmithvarchar(150)
[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)
[mobilephone]Phone Number (Mobile)213-555-3453decimal(15)
[msrp]MSRP399.95decimal(10.2)
[nb_cards]Number of Cards2smallint(3)
[network_name]Network NameSSIDvarchar(150)
[nickname]NicknameMaverickvarchar(150)
[notes]NotesMy best friend!text(1024)
[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)
[permit_nb]Permit #DR89823489234-CAvarchar(150)
[pin_nb]Personal Identification Number (PIN)4593varchar(150)
[price]Price299.99decimal(10.2)
[pricetype]Price Type/eachsmallint(3)
[productname]Product NameWOW Dining Tablevarchar(75)
[pronouns]Pronounshe/himvarchar(40)
[pw]Password05#Y6NbBeX&?xl#2varchar(150)
[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)
[status]StatusActivevarchar(50)
[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]Title #1Chief Executive Officervarchar(150)
[title2]Title #2Chief Technology Officervarchar(150)
[tracking_number]Tracking NumberLL 123 2431 34 PCvarchar(75)
[type1]Type #1Mediavarchar(75)
[type2]Type #2Mediavarchar(75)
[upc]UPC028611000059decimal(12)
[url]Unique URLhttps://www.example.com/?id=234234varchar(250)
[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)
[workfax]Fax Number (Work)213-555-5219decimal(15)
[workphone]Phone Number (Work)213-555-9834decimal(15)
[zip1]ZIP/Postal Code90001varchar(15)
[zone]ZoneArea 51varchar(75)

Custom Shortcodes

IDpack also provides additional built in shortcodes that offer extended flexibility:

  • [id] or [id_number] The record identification number. Example 5678
  • [organization_name] The name of the organization managing the account. Example ACME Example Inc.
  • [firstlast_name] Combines the first name and last name into a single shortcode. Example Steve Smith
  • [colorcodename] Displays the text label of the Color Code assigned to the record. Example Administrator
  • [year] Displays the current year. Example 2026