advanced_form( $form_key_or_id, $args = array() ) to render a form in code. The first argument should be either the form key or ID. The second argument is optional and specifies the form arguments. You can read more about the available arguments here.
af_get_field( $field_name_or_key ) to get the value of a submitted field. This function works from all actions and filters and will return the same value as ACF’s
AF() returns the singleton object which contains information about the current submission, including the form, arguments and fields. This object can be accessed from all actions and filters.
Get the form arguments:
Get the ID for a recently created post.
Get the ID for a recently registered user: