Sections not correct in forms

SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
If you put form fields in sections, they appear in the wrong section.

For example, make a module form with 3 fields in each of 3 sections, when it is displayed section 1 has 1 field, not 3, the other 2 appear in section 2.

They then move to a different section the second time you view the form.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 01/17/14 11:03:25AM
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
Could be that this is related to the form designer, I guess you cannot have sections in a form designer form.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
You can have sections in a form that is setup for the form designer, but you can't add sections in via the Form Designer interface.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
Ok, so this is on a completely new install.

Installed my module and gone to the create form.

It doesn't matter if I give the items an order or not, put everything into a section or not, the order is still messed up.

The form isn't registered with the form designer.

It has some standard fields at the top of the form (one of them is a livesearch), followed by a section Media containing the song button and image button, and then a section containing html as a custom field which has a section of its own.




--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 11/18/13 09:24:33AM
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts

    // Audio File
    $_tmp = array(
        'name'       => 'audio_file',
        'label'      => 14,
        'help'       => 15,
        'text'       => 29,
        'type'       => 'audio',
        'section'    => 'Media',
        'required'   => false
    );
    jrCore_form_field_create($_tmp);

    // Audio Image
    $_tmp = array(
        'name'       => 'audio_image',
        'label'      => 16,
        'help'       => 17,
        'text'       => 30,
        'type'       => 'image',
        'section'    => 'Media',
        'required'   => false
    );
    jrCore_form_field_create($_tmp);



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
I can pm or email the entire form if you like, but I'm pretty sure there isn't anything in there that would cause this.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
Can you send it to me? The only time I've seen some forms get a bit out of order is when using the form designer - when NOT using the form designer they should display in the order they are in the view function.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
I've jsut updated to 5.1.5 and fields are appearing out of order again on custom module forms with sections.

I haven't tried taking it back down to a simple form again, but jsut wondered if anyone else is seeing this?

Thanks


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 12/12/13 02:41:49AM
brian
@brian
12 years ago
10,149 posts
SteveX:
I've jsut updated to 5.1.5 and fields are appearing out of order again on custom module forms with sections.

I haven't tried taking it back down to a simple form again, but jsut wondered if anyone else is seeing this?

Thanks

There was a bug fixed in 5.1.5 as the order in the profile/settings section was all out of whack, so I'm thinking that change might have regressed the issue you are seeing - can you send me via email the view function you are testing with (just the form is fine, the smaller the better) so I can check it out?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
12 years ago
2,589 posts
It's in an enormous form.

I'll try reducing it to the bones later and see if I still see the reordering.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
12 years ago
10,149 posts
SteveX:
It's in an enormous form.

I'll try reducing it to the bones later and see if I still see the reordering.

Thanks Steve - I appreciate it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags