• Resolved stewartmartin

    (@stewartmartin)


    Hi All, Happy Friday.

    I use UM for a registration form for a riding school. All new riders are required to create an online profile for H&S requirements.

    I have a sweet form setup and its been working for a while but all of a sudden something has gone awry.

    I have a few rows to make the form look good, and a hidden fields based on if you are registering a minor. If you select yes, additional fields magically appear, nice.

    The issue is that some of the fields are now appearing in other rows. They still trigger and appear based on a radio button selection, but the fields are out of position and some off screen.

    On the back end, I move the fields to the right position and all looks like ‘problem solved’, until i click update…! – I am excited by the ‘form updated’ message at the top, but whats this? – form has completely reverted.

    Screenshots below, hope you can help ??

    Many thanks,

    Stewart

    Image 1 – The Problem

    Image 2 – Ahh Problem Solved, put the kettle on.

    Image 3 – Weekend plans cancelled, time for some debugging.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stewartmartin

    How many fields you have set up on the Form?

    Regards,

    Thread Starter stewartmartin

    (@stewartmartin)

    Hi @champsupertramp

    I have 62 fields split over 9 rows. They all show on the front/back end but they are just out of order and won’t save in the correct order.

    Many thanks for your reply!

    Best,

    Stewart

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stewartmartin

    Have you tried splitting the form fields by Tab?

    You can check this documentation:
    https://docs.ultimatemember.com/article/1552-how-to-manage-profile-form-with-a-huge-quantity-of-fields

    Regards,

    Thread Starter stewartmartin

    (@stewartmartin)

    Hi @champsupertramp

    The documentation says about splitting the form for large forms over 150 fields, but I’m giving it a go anyway, it might make the form a little tidier.

    I have added the code and activated the plugin, everything is going well apart from;

    I have removed the fields from the main profile form (the ones I am splitting) but when I try and add them to the newly created profile form, they are greyed out and won’t let me add them.

    Also, The 2 additional forms I have created (2nd Rider + 3rd rider) but the tabs are showing in the wrong order, anyway to correct this?

    Thanks!

    Stewart

    Thread Starter stewartmartin

    (@stewartmartin)

    OK, I have deleted the secondary forms and starting from scratch, it seems to be working, i’ll crack on and update once done, hopefully all will be well ??

    Thread Starter stewartmartin

    (@stewartmartin)

    Hi @champsupertramp

    What a morning I’m having!!

    I have split the data over 2 forms and it looks OK from the front end but the form is not saving the data. Fields that are marked mandatory (and are filled in) glow red and the data is removed.

    Additionally, when experimenting and removing the tick box for the field being mandatory, the field jumps out of row again. I’m not quite sure whats happening here.

    I need a cup of tea. I’ll then take another look.

    Thanks,

    Stewart

    Thread Starter stewartmartin

    (@stewartmartin)

    I have rebuilt the forms. On my second form, as a test, I only add 6 fields. 4 fields are plain text entry, one is a check box and the other is numberical field input. I edit all fields and update the profile. the page refreshes back to the main profile. I select Rider 2 and the numberical field is missing. I edit the profile and it returns with no value. I then enter a number…again, update profile and its again missing on the profile page.

    I have removed validation from this field and saved, the field is then no longer showing at all on the front end. Any futher changes to this field make no effect, it’s missing completely.

    I remove the field, save the form, re-add the field and save the form and it’s now showing on the front end again, but it doesn’t save any value input into it.

    Thread Starter stewartmartin

    (@stewartmartin)

    Hi again @champsupertramp

    Back in in my staging area, I took the drastic step and completely deleted all forms for recreation. This is what happened when readding my fields back to the form;

    Main Profile Form
    Row 1 added 13 fields
    Row 2 added 4 fields
    Row 3 added 6 fields. (Upon adding the 5th field, it moved from row 3 to row 1. The 5th field is a basic mandatory checkbox field with options Yes/No. I drag it back to row 3). Form appears OK on the front end.

    1st Rider Profile
    All fields added without any issue.
    On front end, fields missing from profile, edit profile, fields return and I enter data into empty fields, hit save. Form did not save due to a mandatory field being left empty (it wasn’t). Entered data again and saved, same error. – removed mantatory flag from field. Added data into fields again and saved. Form refreshes back to main profile page. click ‘1st Rider Profile’ tab and fields still missing.

    The form then needs to be deleted and rebuilt because it greys out form fields that it thinks are applied, which they are not. They appear to disappear completely, but are available again when the form is recreated.

    It appears that I may have corruption in the DB with a few fields and this is where my technical abilty will end.

    To be honest, I’m not sure what to try now. It sounds like a field mapping issue, but I can’t recreate a new field as I will loose the information within the DB. Do you have any other suggestions?

    Many thanks,

    Stewart

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stewartmartin

    I suggest that you contact your hosting provider and see if they can increase the PHP settings max_input_vars to a higher value e.g. 5000. Let’s see if this issue still occurs after updating the PHP settings.

    Regards,

    Thread Starter stewartmartin

    (@stewartmartin)

    Thanks @champsupertramp

    I upped it to 5000 and still have the same error. However, I believe may have found the problem.

    Most of my field types and META keys are uniformed and are in the format of “category-fieldname”

    However, due to the addition of other field types a while ago, fields were added with META keys in the format of: “category.fieldname”

    Every field type I have had issue with thus far contains the “.” separator in the META key types or field label.

    I have exported all my data from the user tables so I know what data I need to replace, removed the fields that contain a “.” META key separator and replaced with a newly created field with a “-” separator.

    I have saved, updated the form and all appears to be working fine.

    Thanks for the assistance, I hope this helps others one day.

    Stewart

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stewartmartin

    Thanks for letting us know how you resolved the issue. I’m marking this as resolved now.

    Regards,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Item fields not staying within row’ is closed to new replies.