• Hello,

    For starters, I like this plugin. I have been using FSCF since before I began using wordpress. My question is in regards to the input types. An option on the email input is type “email”. However, when I try to change it, it only changes on the plugin. The html output is still a “text” input. Thus, my mobile users don’t get the proper keyboard. I know it isn’t a huge issue but the option isn’t working so I thought I would poke around. Any help appreciated. Great plugin Mike! Thanks

    https://wordpress.org/plugins/si-contact-form/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi Cloud Inspector have you tried to change the following under Plugins >> FS Contact Form >> Advanced >> Advanced Form and Email Settings and enabled the following Enable to receive email as HTML instead of plain text.

    Regards

    Thread Starter Cloud Inspector

    (@cloudinpector)

    No. Although I’m not sure why I would. My thought would be that would allow me to “style” the email submission. That isn’t what I want. Go to the link below and inspect the email element at the bottom of the page. The html output is “<input type=”text”>”. There is a selection box for the desired type of input on each form element. I selected “email”. It isn’t working, or am I missing something.

    cloudinspectorwd.com

    Hi let me see if I understand correctly. You are saying that what you are currently using, when someone views your contact form in their mobile phone or device they don’t receive the proper keyboard to type. Is that what you mean?

    Thread Starter Cloud Inspector

    (@cloudinpector)

    That is correct. A form has many types of inputs that can be used to acquire information from the user. One type of “box” that they can enter info into is an “email” input. That is what I would like to use. This offers mobile users a keyboard with the “@” and “.com” for ease of use. When I select this option, the html that is created by the form is not acknowledging my request for email type input. It can be seen by visiting the link and viewing the source code of the form on the bottom of the page.

    Despite my selection the resulting tag still looks like this:

    <input name="" id="" TYPE="TEXT"></input>

    It should be:

    <input name="" id="" TYPE="EMAIL"></input>

    Hi Cloud Inspector I just tested your website in my mobile phone and I get the option to use my keyboard. Which gives me access to @ and .com.

    I can’t reproduce your issue.

    Is there something that I have missed?

    Thread Starter Cloud Inspector

    (@cloudinpector)

    Of course it gives you access to the buttons. It isn’t bringing up the mobile optimized, email specific keyboard for the html5 standard email input type. Maybe others are having the exact same issue and don’t realize. I have tried clearing my cache, browsing history, everything; on my mobile and my laptop. Even tried on another laptop that had never seen my new site before. Same deal, code output is input type “text”, as in the screenshot. If I could upload the screenshots of my findings, I would. Maybe Mike has an idea…

    Again, I appreciate you helping me get to the bottom of this. Please don’t let me come off as unappreciative or disrespectful. I do appreciate, and am grateful for, the plugin AND the support. I just want to make it the best possible.

    Hi Cloud Inspector, you are most welcome and no you have not come across as unappreciative. On the contrary you are simple trying to find a solution to your problem.

    This is the first time I hear about this issue. Perhaps it would be best that you create a support ticket. @mike Challis will investigate further.

    Kind regards

    Thread Starter Cloud Inspector

    (@cloudinpector)

    Good One! I shouldn’t have to pay a donation for what appears to be a glitch. Thanks for your time.

    Hi Cloud Inspector I did not mean for you make a donation. I will see if I can get @mike Challis to review this issue.

    Sorry for the misunderstanding.

    Regards

    email or url type was breaking the ‘already posted’ javascript, so I made the type stay text instead of email.
    Months ago I left a note about that in the code.

    Since then I have changed the ‘already posted’ javascript.
    I will fix it for the next version.

    This doesn’t seems to be fixed in the newest version (4.0.37) due to an if statement (from the code: if ( FSCF_EMAIL_FIELD == $field['standard'] ) return(self::display_email($key, $field));). One can however achieve the desired result by applying the filter ‘si_contact_email_input_type’ (from the code: `//filter hook for email input type, someone might want to change it from type=’text’ to type=’email’
    $email_input_type = apply_filters( ‘si_contact_email_input_type’, ‘text’, self::$form_id_num);`)

    @muzaru thank you for reporting your finding. Mike Challis will probably include your code in the next release once he has investigated the code further.

    Thank you

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Email input type not working’ is closed to new replies.