Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_update_entry_meta

Heads up! This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

This hook allows you to make changes to a value saved to a field right before the form is updated.

Usage

add_filter('frm_update_entry_meta', 'update_field_value');
function update_field_value($new_values)

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Parameters

  • $new_values (array)

Examples

Save the username of the user that updated the form in a field.

Save the username of the user that updated the form in a field.

add_filter('frm_update_entry_meta', 'update_field_value');
function update_field_value($new_values) {
   if($new_values['field_id'] == 11389) { //11389 is the ID of the hidden field in the form - note that this field must have a value in it on form submit or this code will not work
		$user= wp_get_current_user();
	   $username=$user->user_login;
	$new_values['meta_value'] = $username;
   }
return $new_values;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms