Skip Navigation

[Resolved] Post form – checkbox option not working

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.55 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 4 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1735597

Hi,
Under my "Camp" post form i need 2 checkboxes that every host has to check to continue.

I add the checkbox module and give the checkbox a label name and press "required" and then save. But on my form the checkbox itself doesn't show up - only the label name.

Link: hidden link

#1735601

I also tried adding 2 numeric fields on my other post form "Camp product info" for the host to type in his account number for bank transfer and these also just show up with the label name and nothing else.

Link: hidden link

#1735875
Skærmbillede-2020-08-12-kl.-13.40.04.jpg
phone-device-3.jpg
phone-device-2.jpg
phone-device-1.jpg

Hi again - is it possible to split this into a seperate ticket?

Hi there,

I use the "center" function in my rows and blocks to center everything. But some rows content are not centered but are standing a little to the left - also on a mobile device so it doesn't seem responsive. Can you help please? I added screenshots and if you look at the blue row at this link you will se it too: hidden link

It's not all rows, only some of them. In the screenshots you will se how some rows are perfectly centered while others are a little to the right.

Thanks

New threads created by Nigel and linked to this one are listed below:

https://toolset.com/forums/topic/split-issues-centring-content-in-blocks/

#1736005

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I've split off your design question to another thread.

Regarding the forms where the fields are not showing, I think the easiest thing would be if I could take a look at the forms in the backend myself, if that's okay. I can see in the page source that the checkbox inputs are missing (rather than hidden), and I need to try and understand why.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#1741559

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2020-08-17 at 07.55.02.png

The checkbox fields are not displaying because you haven't added a field slug for the fields (see screenshot).

If you use Types checkbox fields (i.e. you add a checkbox field to a custom field group assigned to your post type at Toolset > Custom Fields) then when you submit the form this checkbox field value is saved, and you would be able to see it were you to edit the post in the backend.

You are using generic fields, which are effectively disposable fields that are discarded when handling of the form submission is complete. But they still need a slug to identify them (because typically they are referenced somewhere else on the same form or by some custom code which runs when the form is submitted).

Give the fields a slug and they will appear in the form.

It is the same problem with your numeric fields, they have no slug.

Given that these are generic fields they will—as I said—be discarded.

If you want them to be saved, you should probably remove these generic fields and go back to Toolset > Custom Fields and add the fields to a custom field group assigned to the relevant post type, then add these Types fields to your form, and they will be saved along with the rest of the form fields.