Developer forum

Forum » Templates » The forms module

The forms module


Reply

I have been trying out the Forms module, but cant seem to find anywhere where I can chose or make a template for it.


I want to move the form-fields and labels around, insert images (help image with a popup) in the form etc.


I also want to control the layout of the e-mail that gets sent.


Is the Forms module using the files found in /Templates/Formmailer ? And if yes, how do I create a custom template and tell my form to use this instead of the default?


Do I need to create the form, and then hardcode the actual layout of the form (using the correct systemnames for the fields) - and then insert this HTML in a paragraph - in other words, its not nessesary to insert the module on the page?


There is a file called /Templates/Formmailer/documentation.txt that contains some information about templates and Formmailer, but I dont understand how my pages know what template to use, or how I should name my templates.


Replies

 
Nicolai Høeg Pedersen
Reply
src@forbrugerliv.dk wrote:


I have been trying out the Forms module, but cant seem to find anywhere where I can chose or make a template for it.




I want to move the form-fields and labels around, insert images (help image with a popup) in the form etc.




I also want to control the layout of the e-mail that gets sent.




Is the Forms module using the files found in /Templates/Formmailer ? And if yes, how do I create a custom template and tell my form to use this instead of the default?




Do I need to create the form, and then hardcode the actual layout of the form (using the correct systemnames for the fields) - and then insert this HTML in a paragraph - in other words, its not nessesary to insert the module on the page?




There is a file called /Templates/Formmailer/documentation.txt that contains some information about templates and Formmailer, but I dont understand how my pages know what template to use, or how I should name my templates.





Hi Sune


 


The forms module does not support templates for the time being - so the only layout options available is those found in the forms module. Its pretty easy to apply another design using CSS, but not the overall structure.


 


In the form you can insert fields like Image (inserts an image), Divider and a free text. All of which is not normal form fields. The free text (Brødtekst in danish) can be used to insert HTML in the middle of the form. If further modifications are needed you need to do something else.


 


It is possible to copy the generated HTML and modify it - but I will strongly warn about it. We change the form output from time to time, and your form will eventually break if you do it.


 


You have found the formmailer folder in templates. This is an alternative way of doing forms. With this method you create your own forms in HTML as described in Documentation.txt - it gives you control over design of form and the mails sent. To insert a form like this choose the HTML file as an image on a paragraph. Dynamicweb will the insert the html from the html file instead of an image tag.

 
Reply
NP wrote:

You have found the formmailer folder in templates. This is an alternative way of doing forms. With this method you create your own forms in HTML as described in Documentation.txt - it gives you control over design of form and the mails sent. To insert a form like this choose the HTML file as an image on a paragraph. Dynamicweb will the insert the html from the html file instead of an image tag.





I am not sure I understand the "hack" with the image tag? If I insert an image in the DynamicWeb editor, it is an image tag, and is shown as such.


I have also tried to insert my form in the source - and this works fine, at least until I open the paragraph and save it again - now the form is not shown at all on the page. Seems the editor rewrites the source code somehow. Is it possible to turn off this coderewriting in the editor?

 
Nicolai Høeg Pedersen
Reply

I dont mean the editor. On a paragraph it is possible to choose an image from a dropdown next to the template. In this dropdown you can choose an html file...

 

You must be logged in to post in the forum