How to know whether form submitted from mobile or web

  • 19 January 2016
  • 2 replies
  • 2 views

Badge +11

Is there a way to know whether a form has been submitted using a mobile form or a web form?


2 replies

Badge +6

Hi,

If you are talking about the different device layouts, you could embed a form field on each different layout and hardcode the value to be whatever you want - this would show up in the formdata. Otherwise, there may be a way to pull it in through Javascript - but I'll leave that up to the code gurus!

Cheers,

Mark

Badge +11

Great! Thanks Mark, that makes total sense. I should have thought of that.

Reply