Enable Scanner Setting for Paragraph Text fields.


Filename: gpqr-add-qr-scanner-to-paragraph-field.php

 * Gravity Perks // QR Code // Enable Scanner Setting for Paragraph Text fields.
 * https://gravitywiz.com/documentation/gravity-forms-qr-code/
add_action( 'gform_editor_js', function() {
		window.gform.addFilter( 'gpqr_is_supported_field', function( isSupported, field ) {
			if ( GetInputType( field ) === 'textarea' ) {
				isSupported = true;
			return isSupported;
		} );
} );

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.