Blog
A collector runs a rapid urine drug screen with the next customer already waiting. At the end of it, there has to be a signed custody and control form, the CCF, and four people each need a copy: the laboratory, the collector, the employer, and the donor. The form is a legal and medical record, so if it is incomplete or unclear a result can be challenged later. The client, a US drug and alcohol testing company, had a form that worked but looked amateur and leaned on a slow, poorly maintained third-party system just to capture a signature.
Collection Record is a one-page collection form we built on Framer for that company, with the logic written in custom React code components. The donor and the collector sign on the company’s existing electronic signature pad, the specimen number is generated, scanned from a lab barcode, or typed, and the form records the test panel, the reason, and the results. One click produces the CCF as a PDF in four labelled copies. The project ran from February to May 2023, was tested on the client’s own testing computers over remote sessions, and was published on a separate domain so the company’s main website stayed untouched.
Put simply, a collector fills in the form, scans or types the specimen number, has both people sign on the pad, and prints four labelled copies of a professional CCF, with nothing kept on the site unless the client later chooses to store it.
Collectors work quickly, often with someone waiting, and a form that is wrong or unclear can get a result thrown out. That made the requirements strict, and each one had to survive a busy collection site.
The collector’s path through the form is a genuine sequence, and making a browser page talk to a hardware signature pad and a barcode scanner reliably on the client’s own machines is the kind of problem Framer website development can carry when the logic lives in custom code rather than a template. A collection runs in a set order:
The whole thing behaves less like a web page and more like a piece of software running on a counter, which is why we scoped it as web application development: single-choice controls that prevent conflicting entries, specimen-number modes that override cleanly, and a results section that enforces the correct wording rather than leaving it to the collector to remember.
The page is designed and hosted in Framer, on its own domain. The form logic runs in custom React code components: the single-choice controls, the specimen-number modes, the results, and the PDF generation in the browser. Signatures come from the signature pad’s web SDK, which reaches the pad through a Chrome extension installed on each testing computer. The hard part was not the fields. It was making the hardware, the browser, and the four-copy PDF work together reliably on the client’s own machines. Each layer has one job.
The part that took the most care is the four-copy layout. Early PDFs put the footer in the wrong place and broke the pages badly after the first copy, so the layout was reworked until each copy prints on its own page with Laboratory, Collector, Employer, or Donor centred at the bottom, and the same record appears identically on all four.
Getting a hardware signature pad to work inside a web page was the central problem, because the pad needs its vendor’s browser extension to talk to the page at all. We worked with the vendor’s web SDK and tested over remote sessions while the client signed, until both signature boxes captured reliably, then gave the client a direct install link so each testing computer could add the same extension. Getting four copies right was the next, solved by reworking the page breaks and footers so each labelled copy stands alone.
Data flowing through to the PDF caught us in testing, when a scanned specimen number, the non-negative results, and the courier choice did not all reach the output; those were traced and fixed with the client confirming each one. Why secure record storage came next tells the real story: the first version made PDFs without keeping anything, which suited the client’s concern about health data, but when one early PDF showed the wrong donor’s details it could not be recreated, so the client asked us to quote storing every record, including signatures, as the next phase.
The form now ends every collection with a complete, signed CCF in four labelled copies before the donor leaves, printed from the company’s own hardware with no new equipment to buy. The specimen number comes from whichever of the three sources fits the test, results are reported in the language a rapid screen is allowed to use, and the PDF matches the standard custody and control form that laboratories and employers recognise at a glance. It lives on its own domain, so changes to the company’s main website never affect collections. Both milestones were paid, the client left a review, and secure record storage was quoted as the next phase.
It works because it was built around a real collection site, the hardware the staff already use and the exact form the industry expects, rather than a generic contact form. If you are building something like it, you can hire React developers who have wired browser code to signature pads and barcode scanners, or tell us how your collections run today and we will map them into a form your collectors can trust. It suits any healthcare or medical testing business that has to produce a signed, standard record at the point of care.
What is Collection Record?
It is a one-page drug-test collection form built on Framer with custom React code components, made for a US drug and alcohol testing company. It captures signatures on the company’s electronic pad, records the panel, reason, and results, and produces a custody and control form as a PDF in four labelled copies.
How does it capture signatures from a hardware pad?
The donor and collector sign on the company’s existing electronic signature pad, which the browser reaches through the pad vendor’s Chrome extension and web SDK. The date and time are recorded next to each signature, and each testing computer uses the same extension through a direct install link.
Where does the specimen number come from?
From one of three sources. The form generates a number automatically for on-site tests, but scanning a pre-printed lab barcode with the USB scanner, or typing the label number, overrides the generated one for lab-bound tests, so the right number appears on every copy.
Why does the form say “non-negative” rather than “positive”?
A rapid screen cannot confirm a positive on its own, so results are reported as non-negative for the selected drugs, with lab confirmation left as the employer’s choice. Using the correct language protects the company if a result is ever disputed.
Are donor records stored on the site?
The first version produced PDFs without keeping records, which suited the client’s concern about confidential health data. Because an early PDF with wrong details could not be recreated, the client asked us to quote secure storage of every record, including signatures, as a following phase.