Is it possible to capture whether a person submitted a form from mobile vs pc?

By: MIke Stephens | Asked: 06/12/2023
ForumsCategory: General questionsIs it possible to capture whether a person submitted a form from mobile vs pc?
MIke Stephens asked 2 years ago
cant seem to find the answer searching.  Hoping to have a hidden field that identifies mobile or pc, or at least what browser.  Is this possible?
3 Answers
Victor Font answered 2 years ago
Yes, it's possible. The PHP $_SERVER global variable can be used as a default value in a hidden field. https://formidableforms.com/knowledgebase/using-dynamic-default-values-in-fields/#kb-server-values
MIke Stephens answered 2 years ago
Thanks for that answer. I have looked through that link and some of the further links on that page but cannot find an example that would show mobile vs desktop. I am not particularly familiar with this stuff though so could have missed it. 

if you can provide any additional guidance that would be great. 

thanks
Victor Font replied 2 years ago

Here’s a working example. You want $_SERVER[‘HTTP_USER_AGENT’]: https://tryphp.w3schools.com/showphp.php?filename=demo_global_server

MIke Stephens answered 2 years ago
Thanks!!

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