Description
Action after a code has been successfully scanned.
Usage
gform.addAction( 'gpqr_on_scan_success', 'my_custom_func' );
Parameters
decodedText string
Whether the number should be cleaned.
decodedResult Html5QrcodeResult
Detailed information about the decoded contents of the QR code.
gpqrCodeInstance GP_QR_Code
Current instance of the GP QR Code class.
Since
This filter is available since Gravity Forms QR Code 1.0-beta-1.2.
Examples
Auto-submit Form After Scan
gform.addAction( 'gpqr_on_scan_success', function( decodedText, decodedResult, gpqr ) {
gpqr.$input.parents( 'form' ).submit();
} );