In the email, the output is in the format: Firstname Lastname Firstname Lastname. As can be seen, both the first name and last name fields each outputs the full name.
WordPress 6.3
Forminator version 1.24.6
Regards.
]]>I’m working with your awesome API for the plugin. Really useful! I’m trying to update a Name field.
Can you provide an example of how to construct correct entry meta data for the Name field that I could use for the update_form_entry() API method?
For simple text fields, this would work just fine:
$entry_meta = array(
array(
'name' => 'text-1',
'value' => 'new value'
)
);
Name fields, however, are more complex. I have to update something like this:
[meta_data] => Array
(
[name-1] => Array
(
[id] => 436
[value] => Array
(
[first-name] => Anthony
[last-name] => Brooks
)
)
...
I tried different tricks but sadly without success. First and last name went blank. To give you an example, this code snippet does not work:
array(
'name' => 'name-1',
'value' => array(
'first-name' => 'new first name',
'last-name' => 'new last name'
)
)
I also tried things like json_encode() and different names for keys (for example name-1-first-name). I’m running out of ideas. Could you help me out please?
Thanks a lot!
]]>I’d like to use the Name Field, but I’ve noticed it doesn’t have the Element Label on it, and I need to do that. I need a proper name entered there, but it’s the Applicant’s Name the first time and the Supervisor’s Name the second time (these are examples).
Is there a way to accomplish this using the Name Field?
Thanks!
]]>Plus: This plugin is really helpful. Thank you
]]>Thanks for you help.
Thiru
]]>