Edit form block
Permalink
Hi,
I'm trying to edit the code of the form block.
The standard code places the title WITHIN the form, which is not allowed. I want to move the title OUT of the form, so that my site passes the W3C Validation.
Anyway, I've looked at every single file in the concrete/form directory, and I can't find anything that displays the title (h3)..
Does somebody know where I can find this?
Thanks,
Tom
I'm trying to edit the code of the form block.
The standard code places the title WITHIN the form, which is not allowed. I want to move the title OUT of the form, so that my site passes the W3C Validation.
Anyway, I've looked at every single file in the concrete/form directory, and I can't find anything that displays the title (h3)..
Does somebody know where I can find this?
Thanks,
Tom
![JohntheFish](/files/avatars/51576.jpg)
w.r.t validation, could there be some confusion between the title tag and heading tags?
I'm not quite sure what you're trying to say, but the thing I want to edit is the FORM TITLE (which is displayed like --> <h3>Form title</h3>)
OK, now I am clear what the issue is, though am surprised to learn that having a well formed h3 tag within a form is a W3 validation issue. You tend to get headings within forms all over the web. Purists even reject the fieldset tag because the same could be achieved with a heading and some css.
Not sure if they help but I found these-http://c5cookbook.com/recipes/block_form_validation...
http://www.concrete5.org/documentation/developers/forms/basic-valid...
http://www.concrete5.org/documentation/developers/forms/basic-valid...
Hi,
Thank you for trying to help. I've reviewed your links, but I couldn't find the location of the <h3> tags there too :(
Thank you for trying to help. I've reviewed your links, but I couldn't find the location of the <h3> tags there too :(
Anyone?
I'm not sure where you get the h3-tag, are you e.g. using a custom template for the form block? Or are you using some other block than the core form block?
However, the core form block's view template can be found from:
Custom templates (if any written for your sites):
And the logic that writes the actual form elements etc. can be found from:
Look at the bottom of the file for method MiniSurvey::loadSurvey().
Br,
Antti / Mainio
However, the core form block's view template can be found from:
/concrete/blocks/form/view.php
Custom templates (if any written for your sites):
/blocks/form/templates/
And the logic that writes the actual form elements etc. can be found from:
/concrete/blocks/form/controller.php
Look at the bottom of the file for method MiniSurvey::loadSurvey().
Br,
Antti / Mainio
I've checked both files, still can't find the <h3> & </h3>
It's simple:
I'm using the core block.
When creating it, it asks for a Form Title. My Form Title is "Search".
When I publish the block (form), the form title is displayed in the H3-heading. But since the H3-heading should be OUTSIDE of the <form>, NOT inside, I want to change it.
But I can't find where the Form Title is outputted -.-
It's simple:
I'm using the core block.
When creating it, it asks for a Form Title. My Form Title is "Search".
When I publish the block (form), the form title is displayed in the H3-heading. But since the H3-heading should be OUTSIDE of the <form>, NOT inside, I want to change it.
But I can't find where the Form Title is outputted -.-