Developer forum

Forum » Feature requests » Form improvements

Form improvements

Anders Ebdrup
Reply

Hi Dw,

 

I think the form module are missing some features:

  • Make a checkbox required (e.g. when the user has to accept some conditions)
  • Make a dropdown required (e.g. force the user to select a category for the inquiry)
  • Add a "class" to the parent element of each field (e.g. if I have a field with a system name "comment", then the class could be: "form-field_comment"), so it will be possible to style a specific element
  • Add support for the attribute "placeholder"
  • Better posibility to hook into the form validation script

And of course it would be nice to be able to control the output by use of different templates.

 

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Anders

 

Which of the forms modules? The 'New' one (dw7 edition) or the original version?

 

BR Nicolai

 
Anders Ebdrup
Reply

 

Original message by Nicolai Høeg Pedersen posted on 24/10/2013, 14:33:

Hi Anders

 

Which of the forms modules? The 'New' one (dw7 edition) or the original version?

 

BR Nicolai

Hi Nicolai,

 

Actually I do not know... :-) I have attached a screendump of the modules view. In the modul configuration I can see Form (udvidet) is activated, but is grayed out?

 

Best regards, Anders

Capture.PNG
 
Nicolai Høeg Pedersen
Reply

Hi Anders

 

You should have a look at Forms for datalists. It is the new one, it is template based, you can make formsave providers and you have full freedom. Downside is, that many editors do not like the interface because it is a bit geeky.

 

But the new one covers your feature requests.

 

BR Nicolai

 
Anders Ebdrup
Reply

Thanks, Nicolai!

 

I will give it a try! Do you have a trick for adding the "placeholder"-tag other than rewriting the entire input field?

And at the same time give the input field a custom class - e.g. to add default bootstrap styling.

 

When looking at creating the fields manually I can see that the "value" for radiobuttons is not available in the template tags.

 

Best regards, Anders

 
Anders Ebdrup
Reply

 

Original message by Nicolai Høeg Pedersen posted on 28/10/2013, 14:33:

Hi Anders

 

You should have a look at Forms for datalists. It is the new one, it is template based, you can make formsave providers and you have full freedom. Downside is, that many editors do not like the interface because it is a bit geeky.

 

But the new one covers your feature requests.

 

BR Nicolai

Hi Nicolai,

 

How do I with the module send a confirmation mail to two different addresses which is both entered directly in the form?

 

Besides it seems like there is no server side validation even though a field is marked as required in the module setup?

 

Best regards, Anders

 
Anders Ebdrup
Reply

 

Original message by Nicolai Høeg Pedersen posted on 28/10/2013, 14:33:

Hi Anders

 

You should have a look at Forms for datalists. It is the new one, it is template based, you can make formsave providers and you have full freedom. Downside is, that many editors do not like the interface because it is a bit geeky.

 

But the new one covers your feature requests.

 

BR Nicolai

Hi Nicolai

 

I have a problem with invalid output of html for radio buttons where the id's is reused which also causes problems with clicking on the labels for selecting the radio button, when the id isn't unique

 

Please see attached screen dump

 

Best regards, Anders

Capture.PNG
 
Nicolai Høeg Pedersen
Reply

Hi Anders

 

Maybe a bug. Or is it in your template?

 

Will have QA take a look.

 

BR Nicolai

 
Oleg Rodionov
Reply
         Original message by Anders Ebdrup posted on 04/11/2013, 14:33:

 

Original message by Nicolai Høeg Pedersen posted on 28/10/2013, 14:33:

Hi Anders

 

You should have a look at Forms for datalists. It is the new one, it is template based, you can make formsave providers and you have full freedom. Downside is, that many editors do not like the interface because it is a bit geeky.

 

But the new one covers your feature requests.

 

BR Nicolai

Hi Nicolai,

 

How do I with the module send a confirmation mail to two different addresses which is both entered directly in the form?

 

Besides it seems like there is no server side validation even though a field is marked as required in the module setup?

 

Best regards, Anders

 

 

 

Hi, Anders

 

 

1. It's unable to use several email addresses nowadays;

2. TFS #13596 has been created against the validation issues.

 

 

BR, Oleg Rodionov QA

  

    

 

 

 

 
Anders Ebdrup
Reply

 

Original message by Nicolai Høeg Pedersen posted on 13/11/2013, 14:33:

Hi Anders

 

Maybe a bug. Or is it in your template?

 

Will have QA take a look.

 

BR Nicolai

Hi Nicolai,

 

Any news reagarding this problem from the QA?

 

Best regards, Anders