• Hi,
    First of all, thank you so much for supporting such a powerful plugin.
    We are using it to track scholarship applications.
    We want to output a unique submission number after form submission.
    I am able to modify and hook into successMessage using the following code.

    function my_cforms_logic($cformsdata,$oldvalue,$setting) {
        if ( $setting == "successMessage" && $oldvalue<>'' ){
    
            ### only form #1 (default form) should be affected:
    		if ( $cformsdata['id']=='' ){
    			return $oldvalue .$submissionID . '<br />Form submitted on '.date('D, d M Y H:i:s');
    
    		}
    
        }
    }

    Thoughts:
    1. Get last insert ID and use it as application tracking.
    2. Use submission IDs generated.

    Thanks for the help.

    https://wordpress.org/plugins/cforms2/

The topic ‘Unique Submission ID’ is closed to new replies.