Add QR Code Scanner Checkbox To Email Fields

Instructions

  1. Install this snippet with our free Custom JavaScript plugin. https://gravitywiz.com/gravity-forms-code-chest/

Code

Filename: gpqr-add-qr-scanner-to-email-field.js

/**
 * Gravity Perks // GP QR Code // Add QR Code Scanner Checkbox To Email Fields
 * https://gravitywiz.com/documentation/gravity-forms-qr-code/
 *
 * Instructions:
 *
 * 1. Install this snippet with our free Custom JavaScript plugin.
 *    https://gravitywiz.com/gravity-forms-code-chest/
 */
window.gform.addFilter( 'gpqr_is_supported_field', function( isSupported, field ) {
	return isSupported || (field.type === 'email' || field.inputType === 'email');
}, 10, 'emails' );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.