Simple edit to form block

Permalink
Hello everybody!

I'm using a a form (Concrete's block one) with just a textarea field and one question. I want to locate it at the left side of my website, having content on the rest of space that is left in the right side. The problem is that always the form is made like it follows:

Question - Textarea

And that spoils my website structure. What i want is a simple thing, a breakline... i mean:

Question
Textarea

But...where the hell i should add a <br> in Concrete's Form block?
Thanks!

 
jordanlev replied on at Permalink Reply
jordanlev
The built-in form block puts form labels (questions) and fields (textareas, etc.) into a table, so you don't have a lot of options for styling it. If you're familiar with HTML and CSS, you can use this custom template which puts the labels and fields into divs instead of a table:
http://www.concrete5.org/marketplace/addons/form-tableless-layout...

-Jordan
suso replied on at Permalink Reply
Damn! At first you just hit the right spot!
Downloaded the custom template, i chose it for the form and done! didnt even have to edit anything! i guess because its under "divs" now...

Thanks a lot dude! ;)
suso replied on at Permalink Reply
Another problem... :(

Now the form looks nice and cool but it doesnt work...When i click the submit button it just reloads the page, as if you pressed F5! Don't know whats going on...
jordanlev replied on at Permalink Reply
jordanlev
Did you set a Thank-You Message in the form block options?
suso replied on at Permalink Reply
Yes, dont tell me that its because of that!
jordanlev replied on at Permalink Reply
jordanlev
Sorry, not sure what you mean -- if you did set a thank-you message and it's still not working, it could be due to a few things. First I would check if the problem is that the form isn't submitting properly or if it is working but the message is not visible for some reason. To verify this, submit the form and then go look at the form results report in the dashboard -- does it show up there when you use this template?

If it does, then it probably means there's some style that is hiding the thank-you message. Do you have a link to the site you're using this on by any chance? And if so, do you mind if I do some test form submissions on it?

-Jordan
suso replied on at Permalink Reply
I have been testing different things to locate where is the error and got it. It's because i have created the form in the scrapbook and added it editing the php default file. Using this code:

<?php $block = Block::getByName('blockname');
$block->display();?>


Never i have had problems using blocks this way...i tried adding the same form block from the scrapbook but directly from the edit mode and it works... :( but i need to add it from the php because of design stuff...
suso replied on at Permalink Best Answer Reply
I'm idiot...i used an area instead and then pasted the form from the scrapbook into that area. I mean, instead of the code before, i used:

<?php 
$a = new Area('areaname');
$a->display($c);
?>


It works so...its right :P
Thanks a lot!