Populating a field based on entry email address

By: Claire Wood | Asked: 01/20/2025
ForumsCategory: How-toPopulating a field based on entry email address
Claire Wood asked 4 hours ago

I want to autocomplete a dropdown lookup field, based on the email address passed in the url, eg. https://www.the-domain.com/?pass_entry=xcbpr&email=test@abc.com

So the dropdown will have a list of entries from another form (Company, company email), but autocomplete/selected based on the domain name used in the email (so everything after the @).

So the lookup dropdown field on the form would be auto-selected as 'ABC', if they had a 'abc.com' email address.

Is anything like this at all possible?

1 Answers
Victor Font answered 2 hours ago
It's possible with custom code called in this hook: https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/
Claire Wood replied 2 hours ago

Thanks, any pointers on how to get there? I've got stuck at getting the lookup to pull the correct company name based on the email to my form, let alone getting it to select this in the dropdown...

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
crossarrow-right