You can hide, change or add elements on a registration form, and on the thank-you page people see after they register, by pasting your own CSS or JavaScript into a custom code box. For example, you can hide an optional question, restyle the Register button, or add a short note above the form.
This needs advanced coding knowledge. You write the code yourself, and Eventify saves it exactly as you paste it and doesn't validate it, so test every change before you share the form.
Where to find this: Registration > Registration Forms > Settings icon on the form > Custom Code (in the Form Settings window)
This article covers registration forms. To hide parts of the ticket page, see How to Hide Elements on Your Ticket Page by Injecting External CSS.
| Box | Where it is | Where the code loads | Use it for |
|---|---|---|---|
| Form Custom Code | Registration > Registration Forms, click the Settings icon on the form, then Custom Code. The same box is on the Settings step when you click Edit on the form. | That form only: the form page, and the thank-you page people reach after registering through it. | Most changes. Start here. |
| Tracking Code | Registration > Registration Settings > Tracking Code, in Add code before </head> tag or Add code before </body> tag. | Every page of the event's ticket and registration portal: all forms, the thank-you page, the ticket page and checkout. | The same change on every form. |
This hides the Designation question, with its label, on one form. Paste it in the form's Custom Code.
The two selectors point at the same question: the first works on the new portal, the second on the old one. Keep both, so the rule still works if you switch portals.
To find a question's name: right-click the answer box and choose Inspect. The highlighted line shows an id such as id="field-designation" on the new portal or id="RegistrationForm-designation" on the old one. The part after field- or RegistrationForm- is the name. Questions you added yourself have generated names, such as dropdown1788117Q3B1762104520160. Copy them exactly.
A group of tick boxes or radio buttons has no single answer box, so its label carries the id instead. Replace NAME with the question's name:
This makes the Register button green, rounder and wider. Paste it in the form's Custom Code.
You don't need !important here. Your code loads after the portal's own styles, so the rule wins, also when the mouse is over the button. On a form with the Section Wise layout, it styles the Register button on the last step. The Continue and Previous buttons use the class default-button-md.
This makes the section headings, such as Profile Details, larger and green, and makes every question label bold. Paste it in the form's Custom Code.
This adds a short note at the top of the form, above Profile Details. Change the text between the quotes. Paste it in the form's Custom Code.
The script runs before the form is on screen, so it watches the page and adds the note as soon as the form appears. The id check stops it adding a second copy. The note uses textContent, so anything you type shows as plain text. The note is not shown on the thank-you page.
This hides the App Store, Google Play and Login to Portal buttons and the Add to Calendar link. The QR code and the attendee's details stay. Paste it in the form's Custom Code to change the thank-you page of that form only.
Form Custom Code stays active when someone registers and moves on to the thank-you page, which is why this works from the form's box. To hide the whole box with the QR code, use the Hide QR & Appstore Links setting instead. If you set an External Thank You Page Link in Registration Settings > Thank You Page, people go to your own page instead and this page isn't shown.
Any of the CSS examples above can go in Tracking Code instead, so it applies to every registration form of the event.
Tracking Code also loads on the ticket page and at checkout, and some class names are shared. For example, base-form is used at checkout too, and APP_LOGIN_BUTTON_SECTION is also used on ticket order pages. Check those pages after you publish. When a change is meant for forms only, use Form Custom Code.
The names in CAPITAL LETTERS are added for customisation. The lowercase names are the portal's own style names, and the ids are built from each question's name. In CSS, put a dot before a class name and # before an id.
| Name | What it is | Where |
|---|---|---|
| #field-NAME | A question's answer box. NAME is the question's name. | Form, new portal (/t/) |
| #RegistrationForm-NAME | The same answer box. | Form, old portal (/t2/) |
| label[for="field-NAME"] | A question's label. Use div:has(> label[for="field-NAME"]) for the whole question, as in Example 1. | Form |
| #field-NAME-label | The label of a group of tick boxes or radio buttons. | Form |
| base-form | The body of the form and of each section. | Form (also used at checkout) |
| theme-button-md inside base-form | The Register button. | Form |
| default-button-md | The Continue and Previous buttons. | Form, Section Wise layout |
| control-label-top | Question labels. | Form |
| custom-text-primary-md-medium inside base-form | Section headings, such as Profile Details. | Form |
| label-mandatory | The red asterisk on required questions. | Form |
| header-image-view | The cover photo. | Form |
| APPUSER_PROFILE_IMG_MIN_SIZE_TEXT | The "Min file size" text under the profile photo upload. | Form |
| THANK_YOU_SECTION | The tick icon, heading and thank-you message. | Thank-you page |
| THANK_YOU_TEXT | The heading, "You have successfully registered with us." by default. | Thank-you page |
| THANK_YOU_DESCRIPTION | Your thank-you message. | Thank-you page |
| ADD_TO_CALENDAR_SECTION, ADD_TO_CALENDAR_BUTTON | The Add to Calendar link and its row. | Thank-you page |
| ASSIGN_TICKETS_INFO | The box with the QR code, attendee details and app buttons. | Thank-you page |
| ASSIGN_TICKETS_QR_CODE | The QR code. | Thank-you page |
| ASSIGN_TICKETS_ASSIGNED_PASSCODE | The passcode. | Thank-you page |
| APP_LOGIN_BUTTON_SECTION | The App Store, Google Play and Login to Portal buttons. | Thank-you page (also ticket order pages) |
| APP_STORE_BUTTONS | The App Store and Google Play buttons only. | Thank-you page |
| LOGIN_BUTTON | The Login to Portal button only. | Thank-you page |
| SUPPORT_EMAIL | The support line at the bottom. | Thank-you page |
The header (#MAIN_HEADER) and footer (#MAIN_FOOTER) ids are listed in How to Hide Elements on Your Ticket Page by Injecting External CSS.
I added CSS but the form hasn't changed. Why?
Check that the CSS is wrapped in <style> tags, then refresh the form. For Tracking Code, also click Publish and then Publish Changes. If you target a question by id, check that the name matches the form exactly.
Does Form Custom Code load at ticket checkout?
No. It loads only on the form's own page and the thank-you page after it. Tracking Code loads on every page of the ticket and registration portal.
Why does my script have to wait for the form?
Code in both boxes is usually added while the form is still loading, so a script that looks for the form straight away finds nothing. Use the pattern in Example 4.
Will my code keep working after Eventify updates?
The names in CAPITAL LETTERS are there for customisation, so prefer them. Lowercase style names, such as theme-button-md, can change in a future release. Question ids start with field- on the new portal and RegistrationForm- on the old one, which is why Example 1 lists both.
My form is embedded on my website. Does that change anything?
Form Custom Code loads as usual. If your website passes its cookie consent choice to the embedded page, Tracking Code waits for that choice and does not load when a visitor declines both analytics and advertising cookies.
Need more help? Contact Eventify support from the admin panel.