CMS MADE SIMPLE FORGE

Form Builder

 

[#12461] Add HTML 5 input types

avatar
Created By: Stephan (10010110)
Date Submitted: 2021-07-13 11:40

Assigned To: Fernando Morgado (JoMorg)
Resolution: None
State: Open
Summary:
Add HTML 5 input types
Detailed Description:
It would be awesome if you could add support for HTML 5 input types such as
number, email, tel and possibly even datetime. The input type could be set when
selecting the field validation (i. e. you add a “text input” field and if you
select field validation “email” it would change the type attribute value to
“email” etc.). Also, add the “required” attribute to form controls that are set
to “required”.

History

Comments
avatar
Date: 2021-07-13 15:02
Posted By: Fernando Morgado (JoMorg)

Form Builder is going to go through a huge overhaul and fields will have smarty
template snippets which can be used as are or overridden via the module_custom 
mechanism. Additionally you will be able, as you already are, to use the smarty
variables made available by the module to the form templates. As long as the
HTML is valid the input element name must be something like
name="{$actionid}{$test_field->input_id}" and you can set the form element by
element. Additionally you should be able to use the {form_start
module=Formbuilder} tag to replace the {$fb_form_start} as long as the
{$fb_hidden} is kept in place. There is already a lot of versatility on the
forms templates and it will be even better in the new major version.
Thank you for your suggestion.
      
Updates

Updated: 2021-07-13 11:50
description: It would be awesome if you could add support for HTML 5 input types such as number, email, tel and possibly even datetime. The input type could be set when selecting the field validation (i. e. you add a “text input” field and if you select field vali => It would be awesome if you could add support for HTML 5 input types such as number, email, tel and possibly even datetime. The input type could be set when selecting the field validation (i. e. you add a “text input” field and if you select field vali
resolution_id: => 5