CMSMS Mobile Ready
Posted: Wed Oct 17, 2012 6:10 am
Well I hope I am not annoying anyone with these questions. I will put them all here rather than creating new topics as I have been doing over the past few days.
First of all, here is what I started with:
http://www.i-do-this.com/blog/14/Make-y ... bile-ready
and for the most part it works really well. A separate stylesheet called when a mobile device is detected and the client has a separate content area to enter content specifically for mobile users.
My latest challenge deals with the contact form.
I have created a form. I tested it via CPU, then copied/renamed it "mobile_contact_form" and used a different template "Field titles on Top." Fits perfectly on the screen, looks great. But the form will not send via mobile. The submission template does not display either, the form just re-appears. The stylesheet loads. I do NOT get the email. Like I said this exact form is used via CPU ("content" content block) and all is well.
So I set the UDT used for mobile detection in "UDT Integration" for the form, as found in the link above. That was all that I could think of trying. The form does not display via mobile (it does via CPU) and the stylesheet does not load.
I set the UDT integration back to "none."
I don't know what else to try. Either the form loads but does not send or it does not at all.
So here's something really weird. I changed the "contact us" page template to "minimal template" and when I reloaded the contact page on my mobile the submission template was there ("thank you "name", your message has been sent...."). I checked my inbox, the email did send (just then). Then I reloaded the page, the form loaded (this is the content block "content" but that should not matter, the forms are identical), I filled it out and sent it. I got the email immediately.
Obviously something to do with the Mobile ready code I'm using (because the form does function properly on cpu)?
I guess I will just recreate the template without the mobile detection code and use that template for that page only (contact us). But if anyone knows a simple fix for that code, I would rather leave it.
First of all, here is what I started with:
http://www.i-do-this.com/blog/14/Make-y ... bile-ready
and for the most part it works really well. A separate stylesheet called when a mobile device is detected and the client has a separate content area to enter content specifically for mobile users.
My latest challenge deals with the contact form.
I have created a form. I tested it via CPU, then copied/renamed it "mobile_contact_form" and used a different template "Field titles on Top." Fits perfectly on the screen, looks great. But the form will not send via mobile. The submission template does not display either, the form just re-appears. The stylesheet loads. I do NOT get the email. Like I said this exact form is used via CPU ("content" content block) and all is well.
So I set the UDT used for mobile detection in "UDT Integration" for the form, as found in the link above. That was all that I could think of trying. The form does not display via mobile (it does via CPU) and the stylesheet does not load.
I set the UDT integration back to "none."
I don't know what else to try. Either the form loads but does not send or it does not at all.
So here's something really weird. I changed the "contact us" page template to "minimal template" and when I reloaded the contact page on my mobile the submission template was there ("thank you "name", your message has been sent...."). I checked my inbox, the email did send (just then). Then I reloaded the page, the form loaded (this is the content block "content" but that should not matter, the forms are identical), I filled it out and sent it. I got the email immediately.

I guess I will just recreate the template without the mobile detection code and use that template for that page only (contact us). But if anyone knows a simple fix for that code, I would rather leave it.