danielbidala VIP
Total posts: 153
07 Aug 2014 20:14

Hi all!

I want to put submission form's groups into separate div elements. I found this in template file:

if($name != 'tab-main') {
echo "<div><legend>{$label}</legend>"; }

here I can add the opening tag but where put the closing? Thanks in advance.

Last Modified: 08 Aug 2014


Sergey
Total posts: 13,748
08 Aug 2014 00:56

Every group or all form?


danielbidala VIP
Total posts: 153
08 Aug 2014 06:12

Every group in submission form: <div><legend>Group name</legend> <field1></field1> <field2></field2> <field3></field3> </div>


Sergey
Total posts: 13,748
08 Aug 2014 08:20

What is the grouping tipe? Titles, tabs, ...?


danielbidala VIP
Total posts: 153
08 Aug 2014 08:29

Sorry, forgot to mention that I use fieldset grouping type.


Sergey
Total posts: 13,748
08 Aug 2014 08:52

You can add open div in line 457

case 3:
    if($name != 'tab-main') {
        echo "<div class="my-div"><legend>{$label}</legend>";
    }
break;

and close div in function group_end add new case;

case 3:
    echo '</div>';
break;

danielbidala VIP
Total posts: 153
08 Aug 2014 08:57

thanks sergey, you are THE MAN

Powered by Cobalt