/** * Use conditional logic with a date field to show or hide another form field * * @link https://wpforms.com/developers/how-to-use-conditional-logic-with-a-date-picker/ */ add_action( ‘wp_head’, function () { ?>Continue reading
/** * Disable autocomplete for a specific form and field ID * * @link https://wpforms.com/developers/disable-browser-autocomplete-for-form-fields/ */ function wpf_disable_email_autocomplete( $properties, $field, $form_data ) { // This check will only disable autocomplete for Field #3 inside Form #11. // Removing this check…Continue reading
/** * Disable form autocomplete for all fields on a specific form * * @link https://wpforms.com/developers/disable-browser-autocomplete-for-form-fields/ */ function wpf_dev_disable_form_autocomplete( $form_atts, $form_data ) { // This check will only form autocomplete for Form #11. // Removing this check would disable autocomplete…Continue reading
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: #333; padding: 20%; border-radius: 5px; opacity: 1; transition: opacity 0.3s ease-in-out; width: 100%; height: 100%; } form#wpforms-form-1000 .wpforms-image-choices label:hover { border: none; box-shadow: none;…Continue reading
/** * 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 ) { // Only run this snippet on the form ID 1000 if ( absint( $form_data[ ‘id’ ] ) !== 1000 ) { return $fields;…Continue reading
add_filter( ‘wp_mail’, function ( $args ) { // Add the BCC email address here $bcc_address = ‘Bcc: [email protected]’; if ( ! empty( $args[ ‘headers’ ] ) ) { if ( ! is_array( $args[ ‘headers’ ] ) ) { $args[ ‘headers’…Continue reading
/** * Add BCC recipients to specific form email notifications. * * @link https://wpforms.com/docs/how-to-add-bcc-to-email-notifications/ */ add_filter( ‘wp_mail’, function ( $args ) { // Use WPForms_Process object to get the form ID $wpforms_process = wpforms()->process; // Only run this snippet on…Continue reading
button#wpforms-submit-3046 { display: none; } form#wpforms-form-3046 span.wpforms-icon-choices-label { font-size: 0; } ul#wpforms-3046-field_3 li label:hover, ul#wpforms-3046-field_4 li label:hover, ul#wpforms-3046-field_3 li.wpforms-selected label, ul#wpforms-3046-field_4 li.wpforms-selected label { box-shadow: none; } form#wpforms-form-3046 ul.wpforms-icon-choices .wpforms-icon-choices-item label{ margin:0 auto; padding:0; } div#wpforms-3046-field_4-container { width: 20%; float:…Continue reading
/** * Trigger submit from checkbox click * * @link https://wpforms.com/developers/how-to-automatically-submit-a-form-with-a-field-choice/ */ function wpf_dev_automatic_submit_form( ) { ?>Continue reading