I need two extended fields, "firstname" and "lastname", but I don't want to have additional the built in field "fullname". How can I combine the two separate fields in the field "fullname"?
[ed. note: istvan.velsz last edited this post 9 years, 5 months ago.]
I'm facing this issue currently.
With the above, if there's validation on first and last names, and the user leaves one of them blank, how do I pre-populate value=""
Thanks Kristoffer, I will try this now.
Is the a pre or post hook?
Sorry, I should have said that my code should be used as a pre hook.
The pre hook is executed before the fields array are saved to the database so all edits to that array in the hook should be saved.
Glad that it worked anyway.