1st letter of an entry from another entry

By: M M | Asked: 11/12/2023
ForumsCategory: General questions1st letter of an entry from another entry
M M asked 5 months ago
I would like a field called Last Name where the user enters their last name, and a another field that shows only the 1st letter of that last name

Can find anything in Knowledge Base

Any suggestions?
1 Answers
Rob LeVineRob LeVine answered 5 months ago

I nearly went cuckoo trying to figure out how to do it using formidable truncate or a shortcode that did the truncation to create the default value of another field and finally gave up and just made some simple jQuery. Substitute the field keys in your form for the ones in the code.

M M replied 5 months ago

Thank you Rob!

I went through all those things as well, but just thought I wasn't doing something right...:)

M M replied 5 months ago

Unfortunately it brings ove rthe whole name, not just the one letter:(

Rob LeVineRob LeVine replied 5 months ago

I used it and it worked fine. Send me a link to your page.

Rob LeVineRob LeVine replied 5 months ago

I'll bet I know what the issue is. The code I gave you acts on the change event. If you want it to do its thing when the form is loaded that requires an adjustment to the code.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community