facebook

email form fields: EXAMPLE PROVIDED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #324551 Reply

    Hello:
    First let me thank you and congratulate you on sending out MobiOne 1.5 as you promised. The short time I’ve had to look at it–seems great.

    I have created a form with just a few fields for now. I want the user to fill in the form fields and then email the data filled in (or save it). I have the email working but I don’t know how to get the form fields attached to the mail.

    Can you help me on the coding for this?

    Thanks,

    Celeste

    #324554

    support-michael
    Keymaster

    Here is the quick version of a tutorial that we are drafting now.

    Things to know:
    1) a form is limited to 1 screen

    2) add widgets from the Input&Select palette compartment to your form screen
    – the widget’s id translates to its name, e.g., an input field html looks like
    <input type=”text” id=”uniqueIdComposedFromWidgetAndPageIdProperties” name=”widgetIdProperty”….

    3) Add a button set its OnClick action to Submit Form

    4) set your Form properties as follows for email:
    Form: enabled
    Form Method: POST
    Form Action Type: URL
    Form Action URL: mailto:joe@foo.com?subject=Hello World
    don’t use any special chars in subject, keep it simple
    Form Result Type: <None>

    5) Test the form, Run in Test Center – when you click submit your local system’s email client should be opened if configured correctly for mailto: URLs. You can test this by opening a browser and enter on mailto:foo@bar.com in the address/url bar.
    You will see the message body contains the form parameters listed in the format: <name>=<value> format

    6) Upload the webapp and test it on your iPhone using the Project>Upload Mobile Web Application menu action. When you click submit the iOS mail client will open. When you hit send or cancel the mail client will close and return to your webapp.

    Note:[b] #6 is quirky if you save your webapp to the home screen and launch it from there (home screen). What happens is the iOS mail client opens in standard mode and when you hit send or cancel it transitions to your inbox rather than back to your webapp. Bummer! We have no workaround for this failure to return to your webapp as this is intrisict to iOS’ operation.

    I hope this quick blurb is helpful.

    #324555

    Thank you Wayne. I will try it if I can figure it out. I can do it like I think you want me to and then send it to you for your review. I have a meeting next week to talk about App design with my company and they will be excited that at least I have this much working.

    Thanks again,

    Celeste

    #324558

    Max87
    Member

    Hi Wayne,
    is it possible to post form data to another mobi screen? I’d like to save values to local storage on one page and get them on another.
    How to achieve that, when I transit from screen to screen, that, without any input from user, run a function.
    It works fine with document.ready, but if I work with main page and linked pages, document.ready is not working(because it checks another page than I want to)
    Thanks for help.

    #324642

    robert65
    Member

    Hi Wayne,can you confirm if it is possible to return back to the app when using the iOS instead of cloud,everything seems to work perfect except the return to the app

    #324644

    support-michael
    Keymaster

    Hi Robert65,

    Here’s the note from my original post a few posts up from here


    6) Upload the webapp and test it on your iPhone using the Project>Upload Mobile Web Application menu action. When you click submit the iOS mail client will open. When you hit send or cancel the mail client will close and return to your webapp.

    Note: #6 is quirky if you save your webapp to the home screen and launch it from there (home screen). What happens is the iOS mail client opens in standard mode and when you hit send or cancel it transitions to your inbox rather than back to your webapp. Bummer! We have no workaround for this failure to return to your webapp as this is intrisict to iOS’ operation.

    #324652

    robert65
    Member

    hi wayne, sorry to be a pest but my email contact form is not on the home page, it operates fine and resets the page info, the only issue is that after opening the email client, when i finish i am back out of the app? am i doing something wrong

    #324682

    support-michael
    Keymaster

    @robert65

    Can you provide me a few more details about your app and the context when the email form is submitted.

    1) is your app a native app or webapp?

    2) if it is a webapp are you launching it from the device’s homescreen?

    3) how can I replicate your situation?

    #324686

    robert65
    Member

    Hello Wayne, my app is native, my home screen contains 11 links to other pages, one of which contains the link to the pre made email form that I used from the mobione templates page. Everthing works fine and goes directly to the email to send but it does not return to the app, I can get the exact same response from using the URL field as a mailto, however the form makes it look professional,I can forward by build I.d or the ipa if this helps.

    #324688

    support-michael
    Keymaster

    @robert65

    >Everthing works fine and goes directly to the email to send but it does not return to the app,

    Yes, this is the same quirk as a webapp w/ mailto form launched from the home screen. Neither returns control to the app when the email is sent. An option we have for native apps is that we are considering a differerent implementation for how mailto is handled. This will take a while to research.

    Another option is to use a cloud-based email service that will enable your app to by-pass use of the iOS mail client all together. The idea is to replace the mailto form with a call to an email service that will email for you and never open the iOS mail client.

    #324694

    robert65
    Member

    Wayne,thanks for the quick response,is the cloud option available at present and if so how do you use it or do we wait for a workaround.

    #324814

    robert65
    Member

    Octavio,thanks,I appreciate you are all busy with other projects, I also can’t wait for the launch of Android, do you know if the mailto issue is only an iOS problem or will it be the same in Android?

    #326710

    Paul G
    Member

    Can someone post a complete example of a simple form submit app?

    This is such a basic requirement its hard to believe there is not one complete example anywhere in the Learning Centre or in the support section.

    Mobione needs to have a decent user manual, spending hours going through the messages in the support section is not very productive.

    The time you guys waste in answering all these questions could be more productively used by writing a decent user manual, with start to finish example code.

    Paul G

    #326719

    Paul G
    Member

    Here is a simple example that works.
    <form action=”MAILTO:sales@cslsoftware.com.au?subject=Hello World” method=”post” enctype=”text/plain” type=”URL”>
    <input id=”m1-form1-txtname” class=”m1-textfield m1-textfield-border” value=”” type=”text”
    name=”txtname”/>
    <input id=”m1-form1-txtaddress” class=”m1-textfield m1-textfield-border” value=”” type=
    “text” name=”txtaddress”/>
    <input id=”m1-form1-push2″ class=”m1-clickable m1-push-button m1-submit m1-button” value=”Submit Form” type=”submit”/>
    </form>

    However, it opens the IOS (iphone) mail application, and does not return to the app.

    That is useless!

    Does anyone have example code of posting form details directly to an asp page, i.e without opening the iphone email application, and without leaving your app?

    Paul G

    #326744

    support-michael
    Keymaster

    @Paul G

    >The time you guys waste in answering all these questions could be more productively used by writing a decent user manual

    msg received

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: email form fields: EXAMPLE PROVIDED

You must be logged in to post in the forum log in