Real-time validation for restricting numbers from Single Line Text field
/** * Dynamically prevent numbers from being entered on single line text fields * * @link…
How to Add Firework Animation to Confirmation Message
/** * Add fireworks to the canvas element on the confirmation message * * @link https://wpforms.com/developers/how-to-add-confetti-animation-to-confirmation-message/…
Creating a Form With Floating Labels
form#wpforms-form-1682 { position: relative; } form#wpforms-form-1682 .floating label:nth-of-type(2) { display: none; } .floating input { position:…
Dynamically Change the SEO Title of a Specific Post Before the Metadata is Saved
The code snippet below can be used to dynamically change the SEO title of a specific…
Approving User Account After Completed PayPal Payment
This snippet conditionally approves a user's account after they've completed their payment through the PayPal gateway.
Add Donation Form Shortcode
Display a specific campaign's donation form using a shortcode.
Dynamically Change the SEO title of a Specific Post when the Metadata is Loaded
This filter can be used to dynamically change the SEO title of a specific post when…
Sending Geolocation Data Through Webhooks
This snippet works with the Geolocation and Webhooks addon. It allows you to send geolocation data…
Disabling Past Times on the Date / Time Field
This snippet disables past times on the Time Picker field in WPForms.
Changing the Cache Time on Your Form Token
/** * Extend cache time on form tokens before today. * * @link https://wpforms.com/developers/how-to-change-the-cache-time-on-your-form-token */ function…
Change Business Info Opening Hours Icon
This filter can be used to change the business info Opening Hours icon. Replace "/assets/images/email-icon.png" with…
How to Populate a Form Field from an Anchor Link
/** * Populate field from anchor link. * * @link https://wpforms.com/developers/how-to-populate-a-form-field-from-an-anchor-link/ */ function wpf_dev_autofill_field() { ?>
Prevent Copy Paste
This JavaScript snippet prevents right-click and copy events on the frontend
Add Select Field To Donation Form
Add a select field to the donation form.
Add Campaign Progress Bar Shortcode
Add a new shortcode to display the progress bar for a particular campaign.