# Code Examples

- [Lookup City by Zipcode for your WordPress form](/developers/code-examples/lookup-city-by-zipcode-for-your-wordpress-form.md): Example JavaScript code and form elements code to lookup a city based on entered zipcode on your WordPress forms. You can change the region by setting the country as parameter if needed.
- [Audio Recording Field](/developers/code-examples/audio-recording-field.md): WordPress form with microphone recording field. Allow your user to record audio and upload it as a audio file (webm). User can preview the recording and start a new recording if needed.
- [Custom API Phone Number Validation for Your WordPress Form](/developers/code-examples/custom-api-phone-number-validation-for-your-wordpress-form.md): Enhance your WordPress form with custom API phone number validation. Learn how to implement JavaScript code to validate phone numbers via a custom API for accurate form submissions.
- [Updating WordPress user meta data after login](/developers/code-examples/updating-wordpress-user-meta-data-after-login.md): If you require to update some user meta data after the user logged in to your WordPress site you can use one of the below codes.
- [Automatically redirecting to next step after displaying text or a progress bar](/developers/code-examples/automatically-redirecting-to-next-step-after-displaying-text-or-a-progress-bar.md): Below code is intended if you want to display a progress bar (or some text) like "Comparing the best offers for you……" inside a multi-part (form step) before automatically redirecting to the next step
- [Dropdown with groups (categories)](/developers/code-examples/dropdown-with-groups-categories.md): How to add groups for WordPress dropdown element so the items belong to categories/subcategories.
- [Prevent form submission based on entered field values](/developers/code-examples/prevent-form-submission-based-on-entered-field-values.md): Prevent form from being submitted by comparing entered field values. Useful when you want to prevent a specific user or bot from submitting the form. Returns a fake success message to the user.
- [Track form submissions with GTM (Google Tag Manager)](/developers/code-examples/track-form-submissions-with-gtm-google-tag-manager.md): Tracking WordPress form submissions with GTM (google tag manager)
- [Tracking Multi-part steps with Google Analytics](/developers/code-examples/tracking-multi-part-steps-with-google-analytics.md): Tracking WordPress Multi-part steps form with Google Analytics
- [Tracking Multi-part steps with GTM data layer (dataLayer.push)](/developers/code-examples/tracking-multi-part-steps-with-gtm-data-layer-datalayer.push.md): How to pass information to tags with the use of the data layer object. This allows you to pass events or variables. It also allows you to setup triggers based the values of variables.
- [Track form submissions with third party](/developers/code-examples/track-form-submissions-with-third-party.md): Tracking form submission with Third Party software
- [Compare input field value with database value](/developers/code-examples/compare-input-field-value-with-database-value.md): Comparing WordPress database value with form input value
- [Insert form data into a custom database table](/developers/code-examples/insert-form-data-into-a-custom-database-table.md): Insert form data into a custom WordPress database table upon form submission.
- [Delete database row after contact entry is deleted in WordPress](/developers/code-examples/delete-database-row-after-contact-entry-is-deleted-in-wordpress.md): The below code will delete a row from a custom WordPress database table when a contact entry is deleted. The below example will try to match the row based on the email address of the user.
- [Limited date availability (slots) for your WordPress booking form](/developers/code-examples/limited-date-availability-slots-for-your-wordpress-booking-form.md): Allow only a maximum amount of bookings (slots) for a specific date for your WordPress booking form. And display an error message when the date is fully booked and no longer available for selection.
- [Send submitted form data to another site](/developers/code-examples/send-submitted-form-data-to-another-site.md): Sending your WordPress submitted form data to another website.
- [Exclude empty fields from emails](/developers/code-examples/exclude-empty-fields-from-emails.md): How to exclude empty fields from your WordPress email after form submission
- [Execute custom JS when a column becomes conditionally visible](/developers/code-examples/execute-custom-js-when-a-column-becomes-conditionally-visible.md): Trigger or execute custom JavaScript when a column becomes conditionally visible on your WordPress form.
- [Toolset Plugin: Update comma separated string to Array for meta data saved via Front-end Posting](/developers/code-examples/toolset-plugin-update-comma-separated-string-to-array-for-meta-data-saved-via-front-end-posting.md): Updating a comma separated string to Array for WordPress meta data via Front-end Posting when creating a new post after form submission.
- [Toolset Plugin: Update file ID to file URL for meta data saved via Front-end Posting](/developers/code-examples/toolset-plugin-update-file-id-to-file-url-for-meta-data-saved-via-front-end-posting.md): Updating the file ID to point to the file URL for WordPress meta data when saving a post via Front-end Posting.
- [Delete uploaded files after email has been send](/developers/code-examples/delete-uploaded-files-after-email-has-been-send.md): When your WordPress form is submitted, delete any uploaded files directly after the email has been send.
- [Increase Cookie lifetime for client data such as \[Form Progression\]](/developers/code-examples/increase-cookie-lifetime-for-client-data-such-as-form-progression.md): Increasing WordPress cookie lifetime for client data such as form progression and other client storage required by some of Super Forms features.
- [Altering cookie secure and httponly parameters](/developers/code-examples/altering-cookie-secure-and-httponly-parameters.md): Change how your the cookies are stored by altering the \`secure\` and \`httponly\` parameters.
- [Define fake cronjob to clear old client data if cronjob is disabled on your server](/developers/code-examples/define-fake-cronjob-to-clear-old-client-data-if-cronjob-is-disabled-on-your-server.md): How to define a fake cronjob for your WordPress site when cronjob is disabled on your server.
- [Define page language attribute based on page ID or URL](/developers/code-examples/define-page-language-attribute-based-on-page-id-or-url.md): Setting the WordPress page language attribute for a specific page based on the ID or URL
- [Define custom headers when doing a POST request](/developers/code-examples/define-custom-headers-when-doing-a-post-request.md): How to define custom POST request headers before making the request on your WordPress site based on the URL.
- [Change checkbox/radio layout to vertical on mobile devices](/developers/code-examples/change-checkbox-radio-layout-to-vertical-on-mobile-devices.md): Change WordPress form checkbox/radio layout to vertical on mobile devices
- [Show remaining available form submission allowed](/developers/code-examples/show-remaining-available-form-submission-allowed.md): This code allows you to display the remaining amount of times the form is allowed to be submitted.
- [Global fields / elements](/developers/code-examples/global-fields-elements.md): Need the same field or element on existing forms? The global field method might be helpful in these scenario's. To add a field to all your existing forms by altering the form via WordPress hooks.
- [Trim values of fields](/developers/code-examples/trim-values-of-fields.md): The below example codes will trim (remove any whitespace at the start and end of a value). This makes sure any spaces a user entered at the start or end are removed before processing.
- [Re-sending E-mails after editing entries via Listings for WordPress](/developers/code-examples/re-sending-e-mails-after-editing-entries-via-listings-for-wordpress.md): The code example will make it possible to re-send the Admin and or Confirmation E-mails after an entry has been edited or updated via the table view (Listings Add-on) on your WordPress site.
- [Combine multiple field values into one column on Contact Entries page](/developers/code-examples/combine-multiple-field-values-into-one-column-on-contact-entries-page.md): This code allows you to combine multiple field values into one single column. For instance if you have multiple event dates you could combine them into a single column named "Event Dates"
- [Altering the attachments for E-mails via PHP code for WordPress](/developers/code-examples/altering-the-attachments-for-e-mails-via-php-code-for-wordpress.md): If you have a form with a dropdown and you wish to attach a specific file to the E-mails based on the selected dropdown item you can use the below code to achieve this.
- [Generate dynamic columns with dates based on user selected date from Datepicker element](/developers/code-examples/generate-dynamic-columns-with-dates-based-on-user-selected-date-from-datepicker-element.md): This is an example form that allows a user to select a date from a Datepicker element. After which a dynamic column with fields will be added for all following days.
- [Hide \`eye\` icon from Listings row based on user role](/developers/code-examples/hide-eye-icon-from-listings-row-based-on-user-role.md): Simple front-end (JavaScript) method to hide the "Eye" icon on your Listings based on specific user-role(s).
- [Variable product checkout based on variation SKU](/developers/code-examples/variable-product-checkout-based-on-variation-sku.md): This example code allows you to use variable fields inside your form to generate the SKU dynamically based on user selected options. Allowing you to add the product variation to the cart base on SKU.
