Tell us what you are trying to do?
I want to allow the user to choose the status of their publication from a front end publication form.
In the publication form I have a multiselect field with "publish", "draft" and "pending".
The form settings specify what the status of the submitted post will be.
If you want users to be able to change this you should add a generic select field with the different options, and then use the Forms API to update the status after the form submission has been handled and the post created.
i added a generic select field with the different options in the form wich id is 31699,
I added the following code to function.php :
add_action('cred_save_data','func_update_post_status',10,2);
function func_update_post_status($post_id,$form_data) {
if ( $form_data['id']==31699 ) {
$my_post['ID'] = $post_id;
$my_post['post_status'] = $_REQUEST['status'];
// Update the post into the database
wp_update_post( $my_post );
}
}