Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hi moustafabcs ,

    Currently, this functionality is not available. But you can customize the code to add the data provided by applicant in mail notification template which is sent to admin & Hr.

    Thanks & Regards,
    PressTigers

    Hi,
    I made a change to the file class-simple-job-board-notification.php to receive additional information from the fields that I created for the application.

    See if it helps you:
    After the code (+/- line 156)
    ` if (isset($company_name) && NULL != $company_name):
    $message .= $company_name . ”;
    endif;`

    I add this code:
    // by Leandro Tavares
    `$message .= ‘Filled Data:’;

    $applicant_post_keys = get_post_custom_keys($post_id);
    if (NULL != $applicant_post_keys):
    foreach ( $applicant_post_keys as $key ) {
    if ($key == ‘resume’) {
    $message .= ‘Curriculum: <a href=”‘ . get_post_meta($post_id, $key , TRUE) . ‘”> Link to Download </a>’;
    } else {
    if ($key != ‘resume_path’) {
    $message .= ” .substr($key, 7) . ‘: ‘ . get_post_meta($post_id, $key , TRUE) . ”;
    }
    }
    }
    endif;`

    So how’s it Leandro? You had it working? I too need same functionality.

    Hi
    Is there a way to get the $applicant_name appear in the notification?
    there is no field for it that appears in my form

    Plugin Author PressTigers

    (@presstigers)

    Hello stupeur,

    Please paste the following snippets of code where you want to get the applicant’s name.

    global $post;
    $keys = get_post_custom_keys($post->ID);
    
    if (NULL != $keys):
    	foreach ($keys as $key) {
    		if ('jobapp_' === substr($key, 0, 7)) {
    			$place = strpos($key, 'name');
    			if (!empty($place)) {
    				echo $applicant_name = get_post_meta($post->ID, $key, TRUE);
    				break;
    			}
    		}
    	}
    endif;

    Let us know if you need any further assistance.

    Thanks & Regards,
    PressTigers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add form input fields in mail notification’ is closed to new replies.