About

WPForms is the most beginner-friendly WordPress form builder plugin. Our drag and drop form builder lets you create beautiful forms for your website in minutes.

Our goal is simple: to provide a WordPress forms plugin that's both easy to use AND powerful. We want to take the pain out of creating online forms and make it easy for everyone - we call it "stupid simple".

Over 6 million websites use WPForms to create contact forms, payment forms, survey forms, conversational forms, newsletter forms, registration forms, and more.

158 Snippets
50+ Favourites
13k Downloads

How to Add Address Field Validation For Authorize.net

/** * Add address validation for Authorize.net address fields * * @link https://wpforms.com/developers/how-to-add-address-field-validation-for-authorize-net/ */ function wpf_dev_authorize_address_validation(…

10+

How to Disable Browser Autocomplete for Form Fields - all fields

/** * Disable form autocomplete for all fields on a specific form * * @link https://wpforms.com/developers/disable-browser-autocomplete-for-form-fields/…

10+

How to Add an Input Mask to the International Postal Code

/* * Custom input mask for the address field's international scheme. * * @link https://wpforms.com/developers/how-to-add-an-input-mask-to-the-international-postal-code */…

10+

How to Hide Zero Quantity Items in Dropdown Payment Field Notifications

This snippet hides items with zero quantities from your WPForms notification emails when using payment fields

10+

Change the No Results Found text in Modern Dropdown

This snippet changes the default no result found text in Dropdown field with Modern style.

10+

How to Perform Field Comparisons Within Your WPForms

/** * Perform Field Comparisons * * @link https://wpforms.com/developers/how-to-perform-field-comparisons-within-your-wpforms/ */ function wpf_dev_compare_fields( $fields, $entry, $form_data )…

<10

How to Customize the Labels for Image Choices - Combined effect

form#wpforms-form-1000 .wpforms-field .wpforms-image-choices-item:hover .wpforms-image-choices-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: #f6f6f6; color:…

<10

Setting the Default Address Scheme to International

This snippet is used to update the default behavior of the Address field in WPForms. This…

<10

Dynamically Displaying Years in Your Forms

/** * Dynamically display years in the forms * * @link https://wpforms.com/developers/how-to-dynamically-display-years-in-your-forms/ */ function wpf_dev_dynamic_school_year( )…

<10

How to Set the Language for Google reCAPTCHA

/** * Set the language for Google reCAPTCHA. * * @link https://wpforms.com/developers/how-to-set-the-language-for-google-recaptcha/ */ function wpf_dev_recaptcha_language( $url…

<10

Change Validation Messages for Required Fields - WPML

Below is an example that changes the required field validation message depending on the language WPML…

<10

Changing Sublabels for the Email Field

This snippet is used to update the default labels for the Email field when it includes…

<10
1 9 10 11 12 13 14