form block customisation

Permalink
i have a form block and i would like the question to be above the input field rather than the default (by the left side) iv been playing with the view.css file but cant get it to work?

for example
Name:
(text area)
Email:
(text area)

rather than
Name: (text area)
Email: (text area)

any help anyone?

thanks

ecomatt
 
shub2079 replied on at Permalink Reply
Unfortunately this won't be so easy. The form block doesn't completely follow the MVC design pattern as it generates html code from within the controller.php file.

You'll find table tags being output throughout the file to display the content. If you want to customize the layout of the form you'll need to change a lot of the code in controller.php.

The best way to go about making the changes would be to copy the entire 'form' directory from /concrete/blocks to the /blocks folder. This will override the built in form code so you can make your changes safely without breaking the existing code. If you ever want to roll your changes back, just remove the code from the /blocks directory.

Sorry there isn't a quick fix, and good luck.
ecomatt replied on at Permalink Reply
ecomatt
thanks ill give it a go?
unless someone can help me input external forms where can i build them easily? online free form builder?

and onces generated how do i put into external forms section?
TimDix replied on at Permalink Reply
TimDix
Here, this should allow you a much easier way of editing your form to look the way you want it to.

http://www.concrete5.org/community/forums/customizing_c5/updating_f...
ecomatt replied on at Permalink Reply
ecomatt
thats great but i still cant figure out where to change the code so i can place the text above the input box?

can you help me please?

also can you make it so that you can add a question with no input field as i need to add some text (on its own no inputs needed) halfway through a large contact information form?

thanks