Create post title from hidden field issue

Hi, I’ve been trying for hours to create a proper post based on a form submission. It seems the post title cannot be created based on a hidden field. Only if the hidden field’s default content should be used, it shows up as a title. If I choose to fill the hidden field with the value of another (visible field), it turns up empty in the results. It doesn’t make a difference whether I do this via the interface or with this script:

add_filter('frm_validate_field_entry', 'create_post_content', 10, 3);
function create_post_content($errors, $posted_field, $posted_value){
 if($posted_field->id == 100){
 $naam = "My post title, now just a string, but later based on other values";
 $_POST['item_meta'][100] = $naam;
 }
 return $errors;
}

In another post I read the field used for the post title can only be used once when creating the post, so I already addressed that. Am I overlooking something?

Can you provide a screenshot of your "create posts" settings page?

It's in Dutch, but I guess you'll figure it out :)

'Titel' is de hidden field on my form.


Attachment:
Capture1

You need to include the line shown in the example.
http://formidablepro.com/knowledgebase/frm_validate_field_entry/

$_POST['frm_wp_post']['100=post_title'] = $_POST['item_meta'][100];

Also, change 10 in the first line to 8 as shown in the example.

Thanks Stephanie. I tried the exact same code, replaced all the 25s for 101 in my code, but no effect.

Just for testing, I tried the following:
add_filter('frm_validate_field_entry', 'my_validation', 8, 3);
function my_validation($errors, $posted_field, $posted_value){
if($posted_field->id == 101){ //change 25 to the ID of the hidden field
$_POST['item_meta'][97] = "My name";
$_POST['item_meta'][101] = "Content for hidden field";
$_POST['frm_wp_post']['101=post_title'] = "My title";
}
return $errors;
}
When I fill in the form, the content of the name field (id 97) is saved as expected, but both the hidden field and the post title remain empty.

Also, are the parameters for frm_validate_field_entry explained deeper? As you guessed, they don't really make sense to me yet.

Oh... actually try:
add_filter('frm_validate_field_entry', 'my_validation', 20, 3);

Your title is getting overridden later. That number is the order it's fired in. You can read more of those parameters here:
http://codex.wordpress.org/Function_Reference/add_filter

Sweet! I've got everything working now. Thanks so much. I can go home now and have supper. Have nice day!

Topic closed.