WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • Modules »
  • miniform form creator - email field
  • Print
Pages: [1]   Go Down

Author Topic: miniform form creator - email field  (Read 10661 times)

Offline sky writer

  • Posts: 926
miniform form creator - email field
« on: October 23, 2017, 05:42:05 PM »
Still enjoying working with your modules, Ruud.  I have a few questions, and can't find them addressed using forum search or your site help files.

1. When I use the miniform (v 0.11) form creator, and create a field for email address, my best option is INPUTFIELD.  But when I do this, the resulting code is:

Code: [Select]
<div  class="full">
                <label for="email"><span>Email <span>*</span></span>
                    <input placeholder="Your Email" required="required" class="{EMAIL_ERROR}" type="text" id="email" name="mf_r_email" value="{EMAIL}" />
                </label>
            </div>

This works, but there is no check to make sure the text entered is formatted as an email address.  I have figured out that changing type from "text" to "email" forces the email formatting check, but I am not sure every user of the module and form creator would know that.

Perhaps you could have some sort of check for specific terms (e.g. email) in the INPUTFIELD Title or Fieldname to set this "type" automatically.  Or if it might be safer/more logical to have a dedicated "EMAILFIELD" form element.  These are just suggestions after using your great module on many sites.

If this is just user error, please let me know.

2. Could you shed some light on what the "Required Yes (HTML5)" means, as opposed to the straight "Required Yes"?

3. I tried to use the new workflow "ID below to load the form in your Miniform module", but get this error:
Quote
Sorry cURL is not installed!
I am working locally in WBPortable.  Does this feature not work locally?

Thanks!
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: miniform form creator - email field
« Reply #1 on: October 23, 2017, 11:27:18 PM »
1. When using something special for email it should also support the eleven other onput types (other than the standard text type).
I think that just makes thing more complicated. The nice thing about miniform is that you can easaly tweak what is generated by the form creator.
No plans for now to add these input types.. Sorry  8-)

btw... the email check in html5 forms is very "simple". Input like "me@example" is seen as a valid email address (technically it is valid). So do not rely too much on the default validation.

2. Both required settings will create the mf_r_fieldname fields where the module will check if fields are not empty.
The html5 version will also add the "required" attribute that tells the browser to check.
Note that not all browsers will do this, so the module check on submit is still active too.

3. cURL is pretty standard library for hosted webspace. It seems that it is not enabled in your WBportable server.
It might be a simple setting in the php.ini to load the php_curl.dll to make it work.
There is nothing miniform can do about this.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline sky writer

  • Posts: 926
Re: miniform form creator - email field
« Reply #2 on: October 24, 2017, 01:08:33 AM »
No problem.  All understood.  Thanks!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • Modules »
  • miniform form creator - email field
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2