af/form/entry_created

Triggered after an entry has been created

<?php

function entry_created( $entry_id, $form ) {
    // Do something with entry
}
add_action( 'af/form/entry_created', 'entry_created', 10, 2 );
add_action( 'af/form/entry_created/id=FORM_ID', 'entry_created', 10, 2 );
add_action( 'af/form/entry_created/key=FORM_KEY', 'entry_created', 10, 2 );