← Back to Generator

OMHA Form Filler Bookmarklet

Automatically fill the OMHA Portal supervision form with generated reports from HockeyTools.ca

What is this?

This bookmarklet is a small piece of JavaScript code that you save to your browser's bookmarks bar. When clicked on the OMHA Portal supervision form, it will automatically fill in all the report fields with data you copied from the OC Report Generator.

📌 Installation

1

Make sure your bookmarks bar is visible

In most browsers:

  • Chrome/Edge: Press Ctrl+Shift+B (Windows) or Cmd+Shift+B (Mac)
  • Firefox: Press Ctrl+Shift+B (Windows) or Cmd+Shift+B (Mac)
  • Safari: Press Cmd+Shift+B
2

Drag this button to your bookmarks bar

📝 Fill OMHA Form

⬆️ Drag this button to your bookmarks bar

3

Alternative: Manually create the bookmark

If dragging doesn't work:

  • Right-click your bookmarks bar and select "Add page" or "Add bookmark"
  • Name it: Fill OMHA Form
  • Paste the code below into the URL/Location field
javascript:(function(){const data=prompt('Paste the data copied from the OC Report Generator:');if(!data){alert('No data provided.');return;}if(!data.startsWith('OMHA_REPORT_DATA:')){alert('Invalid data format. Please copy data using the "Copy for OMHA" button.');return;}const jsonData=JSON.parse(data.replace('OMHA_REPORT_DATA:',''));const fields={'body_txtStrength1':jsonData.strength1.title+'\n'+jsonData.strength1.description,'body_txtStrength2':jsonData.strength2.title+'\n'+jsonData.strength2.description,'body_txtImprovement1':jsonData.improvement1.title+'\n'+jsonData.improvement1.description,'body_txtImprovement2':jsonData.improvement2.title+'\n'+jsonData.improvement2.description,'body_txtComments':jsonData.comment};let filledCount=0;for(const[fieldId,value]of Object.entries(fields)){const field=document.getElementById(fieldId);if(field){field.value=value;filledCount++;}else{console.warn('Field not found: '+fieldId);}}if(filledCount===0){alert('Could not find any OMHA form fields. Make sure you are on the OMHA Portal supervision form page.');return;}alert('✅ Successfully filled '+filledCount+' fields!\n\nReview the form and fill in any remaining fields (date, arena, division, etc.) manually.');})();

🚀 How to Use

1

Generate your report

Go to the OC Report Generator and create your coaching report.

2

Copy for OMHA

Click the 📋 Copy for OMHA button (the red button) to copy the structured data to your clipboard.

3

Navigate to OMHA Portal

Go to the OMHA Portal and open the supervision form for the referee you're evaluating.

4

Click the bookmarklet

Click the Fill OMHA Form bookmark from your bookmarks bar.

5

Paste the data

A dialog box will appear asking you to paste the data. Press Ctrl+V (or Cmd+V on Mac) to paste the data you copied in step 2, then click OK.

6

Review and submit

The form fields will be automatically filled. Review the content, fill in any remaining fields (date, arena, division, etc.) manually, and submit the form.

⚠️ Note: The bookmarklet fills the text areas for strengths, improvements, and comments. You'll still need to manually fill in fields like date, arena, division, category, teams, and email.
✅ Benefits:

🔧 Troubleshooting

Bookmarklet doesn't work?

Fields not filling?