 #  Examples 

 

##  Pre-Populating the Contact Form with Head Tag 

 

  ![Pre-Populating the Contact Form with Head Tag](https://cdn.richeyweb.com/images/articles/plg_content_indexingapi/tutorial-usercontact/richeyweb-tutorial.webp)    [System - Head Tag](/software/joomla/plugins/system-headtag) powers countless features across this site, often in ways you’d never notice—until now! One clever trick happens on all my extension pages: the "Bug Report" buttons auto-fill the contact form subject field, thanks to Head Tag. This simple, two-part setup takes just 5 minutes, using Joomla’s built-in contacts extension—no modifications or overrides needed. Here’s how you can do it too!

## The Link and the First Script

### Step 1: Create the Link with a Data Attribute

Start by adding a link to your contact form in your article. In Joomla’s editor, go to CMS Content &gt; Contacts, pick your contact, and insert the link. Here’s an example URL (pre-routing) for my bug report page:

 ```
<a href="/component/contact/?amp;view=contact&amp;id=1&amp;catid=4">Bug Report</a>
```

Now, add a custom data attribute to pass the subject:

 ```
data-bug-subject="Super-Wham-o-Dyne Subject"
```

Your updated link becomes:

 ```
<a href="/component/contact/?amp;view=contact&amp;id=1&amp;catid=4" data-bug-subject="Super-Wham-o-Dyne Subject"<br></br>>Bug Report</a>
```

And that's it for the link - super easy, barely an inconvenience!

### Step 2: Inject the First Script to Encode the Subject

Next, we’ll use Head Tag to inject a script that encodes the subject and appends it to the URL. For my site, I applied this to all pages under the "Software" menu, including child pages, but you can target your entire site or specific access levels (e.g., Public users) depending on your needs.

For me, I used it in a menu item, so that's how I'm going to describe it to you.

1. Open System - Head Tag
2. Navigate to the Menu Item Tags tab and click the + icon to create a new item
3. Select your menu item (e.g., "Software" for me), and check "Children" to include subpages (or choose an access level for broader coverage).
4. I wanted it to apply to all child menus (and pages), so I checked the "Children" checkbox.
5. I chose the Type as "Script Declaration"
6. Insert this script
 
 ```
window.addEventListener('DOMContentLoaded',()=>{<br></br>    let bug = document.querySelector('a.btn[data-bug-subject]');<br></br>    if(bug){<br></br>        bug.href += '#' + btoa(bug.dataset.bugSubject);<br></br>    }<br></br>});
```

This script runs on page load, finds the link with the data-bug-subject attribute, encodes the subject using btoa(), and appends it as a hash to the URL (e.g., #encoded-subject). Check the source of this page—it’s there, condensed to one line!

## The Second Script

### Step 3: Add the Second Script to Populate the Contact Form

Now, let’s inject a script on the contact form page to grab the encoded subject and fill the form’s subject field—no form modifications needed!

Follow these steps:

1. Return to System - Head Tag and the Menu Item Tags tab.
2. Click the + icon to create another item.
3. Select the menu item for your contact form (e.g., "Bug Reports").
4. Set the Type to "Script Declaration".
5. Insert this script:
 
 ```
window.addEventListener('DOMContentLoaded',function(){<br></br>    if(window.location.hash.length) {<br></br>        var subject = atob(window.location.hash.replace('#',''));<br></br>        document.getElementById('jform_contact_emailmsg').value = subject;<br></br>    }<br></br>});
```

Here’s what happens: on page load, the script checks for a URL hash (e.g., #encoded-subject). If found, it decodes the hash back to the original subject using atob() and populates the form’s subject field (jform\_contact\_emailmsg). It’s that simple!

## Why It’s Awesome

With just two scripts and a data attribute, you’ve created a multi-use contact form that pre-fills subjects dynamically—no overrides, no hassle. This setup showcases the power and flexibility of "System - Head Tag," letting you enhance user experiences effortlessly. Imagine the possibilities: from form tweaks to site-wide scripts, Head Tag unlocks endless creativity. Try it out, and I bet you’ll soon be teaching me new tricks!



- [      email ](mailto:?subject=Pre-Populating+the+Contact+Form+with+Head+Tag&body=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fhead-tag%2Fpre-populating-the-contact-form-with-head-tag)
- [      facebook ](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fhead-tag%2Fpre-populating-the-contact-form-with-head-tag)
- [      x-twitter ](https://twitter.com/intent/tweet?text=Pre-Populating+the+Contact+Form+with+Head+Tag%3A+https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fhead-tag%2Fpre-populating-the-contact-form-with-head-tag)
- [      linkedin ](http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fhead-tag%2Fpre-populating-the-contact-form-with-head-tag&title=Pre-Populating+the+Contact+Form+with+Head+Tag&summary=System+-+Head+Tag+powers+countless+features+across...)
- [      pinterest ](http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.richeyweb.com%2Fsoftware%2Fexamples%2Fhead-tag%2Fpre-populating-the-contact-form-with-head-tag&media=https%3A%2F%2Fcdn.joomla.org%2Fimages%2Fjoomla-org-og.jpg&description=Pre-Populating+the+Contact+Form+with+Head+Tag)
 


 

 

##### We Value Your Privacy

 

We use cookies to enhance your experience and for traffic analysis. By continuing to visit this site you agree to our use of cookies.

[Privacy Policy](/privacy-policy)

 Details 

###### Google Tag Manager Items

- Ad Storage
- Ad User Data
- Ad Personalization
- Analytics Storage
- Functionality Storage
- Personalization Storage
- Security Storage
 
 

 

 

 

 

 Decline Accept
```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.richeyweb.com/#organization","name":"RicheyWeb","url":"https://www.richeyweb.com/","logo":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/logo/richeyweb.svg","contentUrl":"https://www.richeyweb.com/images/logo/richeyweb.svg","width":{"@type":"QuantitativeValue","value":38,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":38,"unitCode":"PX"},"@id":"https://www.richeyweb.com/#logo"},"image":{"@id":"https://www.richeyweb.com/#logo"},"sameAs":["https://x.com/ComRicheyweb","https://www.facebook.com/RicheyWebDev/","https://www.youtube.com/channel/UCxnVG8BwOvQRO7hVqNX7T2g","https://community.joomla.org/service-providers-directory/listings/115:richeyweb.html"],"description":"RicheyWeb is a custom software developer specializing in Joomla extensions.","ContactPoint":[{"@type":"ContactPoint","url":"http://172.234.196.42:6081/contact-us","telephone":"903-873-8460","contactType":"Owner/Administrator","areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"availableLanguage":"en"},{"@type":"ContactPoint","url":"http://172.234.196.42:6081/bugs","telephone":"903-873-8460","contactType":"Technical Support","areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"availableLanguage":"en"}],"knowsAbout":["Computer programming",{"@type":"Thing","name":"Computer programming","sameAs":["https://en.wikipedia.org/wiki/Computer_programming","https://www.wikidata.org/wiki/Q80006","https://g.co/kg/m/01mf_"]},"PHP",{"@type":"Thing","name":"PHP","sameAs":["https://en.wikipedia.org/wiki/PHP","https://www.wikidata.org/wiki/Q59","https://g.co/kg/m/060kv"]},"JavaScript",{"@type":"Thing","name":"JavaScript","sameAs":["https://en.wikipedia.org/wiki/JavaScript","https://www.wikidata.org/wiki/Q2005","https://g.co/kg/m/02p97"]},"arduino","Computer forensics",{"@type":"Thing","name":"Computer forensics","sameAs":["https://en.wikipedia.org/wiki/Computer_forensics","https://www.wikidata.org/wiki/Q878553","https://g.co/kg/m/02wxbd"]},"White hat",{"@type":"Thing","name":"White hat","sameAs":["https://en.wikipedia.org/wiki/White_hat_(computer_security)","https://www.wikidata.org/wiki/Q7995625","https://g.co/kg/m/03ns_5"]},"Search engine optimization",{"@type":"Thing","name":"Search engine optimization","sameAs":["https://en.wikipedia.org/wiki/Search_engine_optimization","https://www.wikidata.org/wiki/Q180711","https://g.co/kg/m/019qb_"]},"Search engine marketing",{"@type":"Thing","name":"Search engine marketing","sameAs":["https://en.wikipedia.org/wiki/Search_engine_marketing","https://www.wikidata.org/wiki/Q846132","https://g.co/kg/m/06mw8r"]},"Digital marketing",{"@type":"Thing","name":"Digital marketing","sameAs":["https://en.wikipedia.org/wiki/Digital_marketing","https://www.wikidata.org/wiki/Q1323528","https://g.co/kg/g/122hcnps"]},"Web hosting service",{"@type":"Thing","name":"Web hosting service","sameAs":["https://en.wikipedia.org/wiki/Web_hosting_service","https://www.wikidata.org/wiki/Q5892272","https://g.co/kg/m/014pz4"]},"Email hosting service",{"@type":"Thing","name":"Email hosting service","sameAs":["https://en.wikipedia.org/wiki/Email_hosting_service","https://www.wikidata.org/wiki/Q5368818","https://g.co/kg/m/09w60m"]},"Internet hosting service",{"@type":"Thing","name":"Internet hosting service","sameAs":["https://en.wikipedia.org/wiki/Internet_hosting_service","https://www.wikidata.org/wiki/Q1210425","https://g.co/kg/m/09w5yw"]},"Virtual hosting",{"@type":"Thing","name":"Virtual hosting","sameAs":["https://en.wikipedia.org/wiki/Virtual_hosting","https://www.wikidata.org/wiki/Q588365","https://g.co/kg/m/024mvh"]},"Web performance",{"@type":"Thing","name":"Web performance","sameAs":["https://en.wikipedia.org/wiki/Web_performance","https://www.wikidata.org/wiki/Q7978612","https://g.co/kg/m/0gfj3f1"]},"Web content management system",{"@type":"Thing","name":"Web content management system","sameAs":["https://en.wikipedia.org/wiki/Web_content_management_system","https://www.wikidata.org/wiki/Q45211","https://g.co/kg/m/0615s2"]},"Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},"General Data Protection Regulation",{"@type":"Thing","name":"General Data Protection Regulation","sameAs":["https://en.wikipedia.org/wiki/General_Data_Protection_Regulation","https://www.wikidata.org/wiki/Q1172506","https://g.co/kg/m/0pk_7xs"]},"SERP",{"@type":"Thing","name":"SERP","sameAs":["https://en.wikipedia.org/wiki/SERP","https://www.wikidata.org/wiki/Q2205811","https://g.co/kg/g/11c5szp7kc"]},"Artificial intelligence",{"@type":"Thing","name":"Artificial intelligence","sameAs":["https://en.wikipedia.org/wiki/Artificial_intelligence","https://www.wikidata.org/wiki/Q11660","https://g.co/kg/m/0mkz"]},"Prompt engineering",{"@type":"Thing","name":"Prompt engineering","sameAs":["https://en.wikipedia.org/wiki/Prompt_engineering","https://www.wikidata.org/wiki/Q108941486","https://g.co/kg/g/11p6kpgt_n"]},"E-learning",{"@type":"Thing","name":"E-learning","sameAs":["https://en.wikipedia.org/wiki/E-learning_(theory)","https://www.wikidata.org/wiki/Q182250","https://g.co/kg/g/122czm1f"]},"Sharable Content Object Reference Model",{"@type":"Thing","name":"Sharable Content Object Reference Model","sameAs":["https://en.wikipedia.org/wiki/Sharable_Content_Object_Reference_Model","https://www.wikidata.org/wiki/Q827811","https://g.co/kg/m/06_40"]},"Experience API",{"@type":"Thing","name":"Experience API","sameAs":["https://en.wikipedia.org/wiki/Experience_API","https://www.wikidata.org/wiki/Q7807728","https://g.co/kg/g/1yw9ktxr8"]},"Joomla",{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]},"Nginx",{"@type":"Thing","name":"Nginx","sameAs":["https://en.wikipedia.org/wiki/Nginx","https://www.wikidata.org/wiki/Q306144","https://g.co/kg/m/02qft91"]},"MySQL",{"@type":"Thing","name":"MySQL","sameAs":["https://en.wikipedia.org/wiki/MySQL","https://www.wikidata.org/wiki/Q850","https://g.co/kg/m/04y3k"]}],"areaServed":["United States",{"@type":"Country","name":"United States","sameAs":["https://en.wikipedia.org/wiki/United_States","https://www.wikidata.org/wiki/Q30","https://g.co/kg/m/09c7w0"]},"European Union",{"@type":"AdministrativeArea","name":"European Union","sameAs":["https://en.wikipedia.org/wiki/European_Union","https://www.wikidata.org/wiki/Q458","https://g.co/kg/m/0_6t_z8"]},"United Kingdom",{"@type":"Country","name":"United Kingdom","sameAs":["https://en.wikipedia.org/wiki/United_Kingdom","https://www.wikidata.org/wiki/Q145","https://g.co/kg/m/07ssc"]},"Australia",{"@type":"Country","name":"Australia","sameAs":["https://en.wikipedia.org/wiki/Australia","https://www.wikidata.org/wiki/Q408","https://g.co/kg/m/0chghy"]},"Canada",{"@type":"Country","name":"Canada","sameAs":["https://en.wikipedia.org/wiki/Canada","https://www.wikidata.org/wiki/Q16","https://g.co/kg/m/0d060g"]},"Russia",{"@type":"Country","name":"Russia","sameAs":["https://en.wikipedia.org/wiki/Russia","https://www.wikidata.org/wiki/Q159","https://g.co/kg/m/06bnz"]},"China",{"@type":"Country","name":"China","sameAs":["https://en.wikipedia.org/wiki/China","https://www.wikidata.org/wiki/Q148","https://g.co/kg/m/0d05w3"]}],"memberOf":["Mensa International",{"@type":"Organization","name":"Mensa International","sameAs":["https://en.wikipedia.org/wiki/Mensa_International","https://www.wikidata.org/wiki/Q184194","https://g.co/kg/m/0140pf"]},"National Rifle Association",{"@type":"Organization","name":"National Rifle Association","sameAs":["https://en.wikipedia.org/wiki/National_Rifle_Association","https://www.wikidata.org/wiki/Q863259","https://g.co/kg/m/0j6f9"]},"CompTIA",{"@type":"Organization","name":"CompTIA","sameAs":["https://en.wikipedia.org/wiki/CompTIA","https://www.wikidata.org/wiki/Q597534","https://g.co/kg/m/040shq"]},"ISFCE LLC",{"@type":"Organization","name":"ISFCE LLC","sameAs":["https://isfce.com","https://g.co/kg/g/11wxm5r0rg"]}],"hasCredential":[{"@type":"EducationalOccupationalCredential","name":"Joomla 3 Certified Administrator","credentialCategory":"Certification","description":"Administrator Exam is the first available Joomla! certification exam","recognizedBy":{"@type":"Organization","name":"Open Source Matters, Inc.","sameAs":["https://en.wikipedia.org/wiki/Open_Source_Matters,_Inc.","https://g.co/kg/g/11f00wvjhz"]},"url":"https://certification.joomla.org/certified-user-directory/michael-richey","about":["Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},"Web content management system",{"@type":"Thing","name":"Web content management system","sameAs":["https://en.wikipedia.org/wiki/Web_content_management_system","https://www.wikidata.org/wiki/Q45211","https://g.co/kg/m/0615s2"]},"Joomla",{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]}],"educationalLevel":"expert","image":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/contact/badge.webp","contentUrl":"https://www.richeyweb.com/images/contact/badge.webp","width":{"@type":"QuantitativeValue","value":300,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":86,"unitCode":"PX"},"caption":"Joomla 3 Certified Administrator"}},{"@type":"EducationalOccupationalCredential","name":"Certified Computer Examiner","credentialCategory":"Certification","description":"Internationally recognized computer forensics certifiecation","recognizedBy":{"@type":"Organization","name":"ISFCE LLC","sameAs":["https://en.wikipedia.org/wiki/ISFCE_LLC","https://g.co/kg/g/11wxm5r0rg"]},"url":"https://isfce.com/","about":["Digital forensics",{"@type":"Thing","name":"Digital forensics","sameAs":["https://en.wikipedia.org/wiki/Digital_forensics","https://www.wikidata.org/wiki/Q3246940","https://g.co/kg/m/0cnxzfx"]},"Computer forensics",{"@type":"Thing","name":"Computer forensics","sameAs":["https://en.wikipedia.org/wiki/Computer_forensics","https://www.wikidata.org/wiki/Q878553","https://g.co/kg/m/02wxbd"]},"Mobile device forensics",{"@type":"Thing","name":"Mobile device forensics","sameAs":["https://en.wikipedia.org/wiki/Mobile_device_forensics","https://www.wikidata.org/wiki/Q6887097","https://g.co/kg/m/06zp3tp"]},"Network forensics",{"@type":"Thing","name":"Network forensics","sameAs":["https://en.wikipedia.org/wiki/Network_forensics","https://www.wikidata.org/wiki/Q7001032","https://g.co/kg/m/05pb280"]},"Database forensics",{"@type":"Thing","name":"Database forensics","sameAs":["https://en.wikipedia.org/wiki/Database_forensics","https://www.wikidata.org/wiki/Q5227405","https://g.co/kg/m/0cgqsy"]}],"educationalLevel":"expert","image":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/contact/isfce-cce.webp","contentUrl":"https://www.richeyweb.com/images/contact/isfce-cce.webp","width":{"@type":"QuantitativeValue","value":150,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":150,"unitCode":"PX"},"caption":"Certified Computer Examiner"}}],"hasOfferCatalog":{"@type":"OfferCatalog","name":"Web Services","itemListElement":[{"@type":"Offer","itemOffered":{"@type":"Service","name":"Hosting"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Development"}},{"@type":"Offer","itemOffered":{"@type":"Service","name":"Search Engine Optimization"}}]}},{"@type":"WebSite","@id":"https://www.richeyweb.com/#website","url":"https://www.richeyweb.com/","name":"RicheyWeb","publisher":{"@id":"https://www.richeyweb.com/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.richeyweb.com/search?q={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string","valueMaxLength":256,"valueMinLength":2,"valuePattern":"^[A-Za-z0-9\\s]+$"}},"creator":{"@id":"https://www.richeyweb.com/#organization"},"copyrightHolder":{"@id":"https://www.richeyweb.com/#organization"}},{"@type":"WebPage","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#webpage","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag","name":"Pre-Populating the Contact Form with Head Tag","description":"Learn how to auto-fill a Joomla contact form with System - HeadTag! Easy 5-min setup, no overrides, multi-use contact forms, boost functionality now!","isPartOf":{"@id":"https://www.richeyweb.com/#website"},"about":{"@id":"https://www.richeyweb.com/#organization"},"inLanguage":"en-GB"},{"@type":"Article","image":{"@type":"ImageObject","url":"https://www.richeyweb.com/images/articles/plg_content_indexingapi/tutorial-usercontact/richeyweb-tutorial.webp","contentUrl":"https://www.richeyweb.com/images/articles/plg_content_indexingapi/tutorial-usercontact/richeyweb-tutorial.webp","width":{"@type":"QuantitativeValue","value":889,"unitCode":"PX"},"height":{"@type":"QuantitativeValue","value":500,"unitCode":"PX"},"caption":"Pre-Populating the Contact Form with Head Tag","representativeOfPage":true},"headline":"Pre-Populating the Contact Form with Head Tag","description":"Learn how to auto-fill a Joomla contact form with System - HeadTag! Easy 5-min setup, no overrides, multi-use contact forms, boost functionality now!","author":{"@type":"Person","name":"Michael Richey","url":"https://www.richeyweb.com/contact-us","@id":"https://www.richeyweb.com/contact-us#person"},"datePublished":"2025-03-09T00:00:00+00:00","dateModified":"2025-11-25T00:00:00+00:00","about":["Joomla",{"@type":"Thing","name":"Joomla","sameAs":["https://en.wikipedia.org/wiki/Joomla","https://www.wikidata.org/wiki/Q13167","https://g.co/kg/m/07qb81"]},"System - Head Tag",{"@type":"Thing","@id":"https://www.richeyweb.com/software/joomla/plugins/system-headtag/#softwareapplication","name":"System - Head Tag","sameAs":["https://extensions.joomla.org/extension/core-enhancements/coding-a-scripts-integration/headtag/","https://en.wikipedia.org/wiki/System_-_Head_Tag"]},"Content management system",{"@type":"Thing","name":"Content management system","sameAs":["https://en.wikipedia.org/wiki/Content_management_system","https://www.wikidata.org/wiki/Q131093","https://g.co/kg/m/0k23c"]},"HTML form",{"@type":"Thing","name":"HTML form","sameAs":["https://en.wikipedia.org/wiki/HTML_form","https://www.wikidata.org/wiki/Q287539","https://g.co/kg/m/09bpb0"]},"Technical documentation",{"@type":"Thing","name":"Technical documentation","sameAs":["https://en.wikipedia.org/wiki/Technical_documentation","https://www.wikidata.org/wiki/Q1413406","https://g.co/kg/m/0521g6n"]}],"mentions":["Software",{"@type":"Thing","name":"Software","sameAs":["https://en.wikipedia.org/wiki/Software","https://www.wikidata.org/wiki/Q7397","https://g.co/kg/m/01mf0"]},"Agile software development",{"@type":"Thing","name":"Agile software development","sameAs":["https://en.wikipedia.org/wiki/Agile_software_development","https://www.wikidata.org/wiki/Q30232","https://g.co/kg/m/02zhbn"]},"Website",{"@type":"Thing","name":"Website","sameAs":["https://en.wikipedia.org/wiki/Website","https://www.wikidata.org/wiki/Q35127","https://g.co/kg/m/085n4"]},"Uniform Resource Identifier",{"@type":"Thing","name":"Uniform Resource Identifier","sameAs":["https://en.wikipedia.org/wiki/Uniform_Resource_Identifier","https://www.wikidata.org/wiki/Q61694","https://g.co/kg/m/07wz2"]},"HTML attribute",{"@type":"Thing","name":"HTML attribute","sameAs":["https://en.wikipedia.org/wiki/HTML_attribute","https://www.wikidata.org/wiki/Q5636097","https://g.co/kg/m/0bm99j8"]},"Hash function",{"@type":"Thing","name":"Hash function","sameAs":["https://en.wikipedia.org/wiki/Hash_function","https://www.wikidata.org/wiki/Q183427","https://g.co/kg/m/03l5h"]},{"@type":"Thing","name":"JavaScript","sameAs":["https://en.wikipedia.org/wiki/JavaScript","https://www.wikidata.org/wiki/Q2005","https://g.co/kg/m/02p97"]}],"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#article","isPartOf":{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#webpage"},"publisher":{"@id":"https://www.richeyweb.com/#organization"},"keywords":"headtag examples","articleSection":"Head Tag","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag","hasPart":[{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-the-link-and-the-first-script_2_1"},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-1-create-the-link-with-a-data-attribute_3_2"},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-2-inject-the-first-script-to-encode-the-subject_3_3"},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-the-second-script_2_4"},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-3-add-the-second-script-to-populate-the-contact-form_3_5"},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-why-its-awesome_2_6"}]},{"@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex","@type":"ItemList","name":"Pre-Populating the Contact Form with Head Tag","numberOfItems":6,"itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-the-link-and-the-first-script_2_1","name":"The Link and the First Script","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-the-link-and-the-first-script_2_1"}},{"@type":"ListItem","position":2,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-1-create-the-link-with-a-data-attribute_3_2","name":"Step 1: Create the Link with a Data Attribute","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-step-1-create-the-link-with-a-data-attribute_3_2"}},{"@type":"ListItem","position":3,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-2-inject-the-first-script-to-encode-the-subject_3_3","name":"Step 2: Inject the First Script to Encode the Subject","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-step-2-inject-the-first-script-to-encode-the-subject_3_3"}},{"@type":"ListItem","position":4,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-the-second-script_2_4","name":"The Second Script","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-the-second-script_2_4"}},{"@type":"ListItem","position":5,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-step-3-add-the-second-script-to-populate-the-contact-form_3_5","name":"Step 3: Add the Second Script to Populate the Contact Form","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-step-3-add-the-second-script-to-populate-the-contact-form_3_5"}},{"@type":"ListItem","position":6,"item":{"@type":"WPHeader","@id":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#articleindex-toc-why-its-awesome_2_6","name":"Why It’s Awesome","url":"https://www.richeyweb.com/software/examples/head-tag/pre-populating-the-contact-form-with-head-tag#toc-why-its-awesome_2_6"}}]}]}
```
