Skip Navigation

[Resolved] Checkbox not showing on user registartion form

This thread is resolved. Here is a description of the problem and solution.

Problem:
The customer faced an issue where a required checkbox added to a Toolset user registration form was not visible on the front end—only the label was showing. Additionally, they needed guidance on placing an explanation text beside the checkbox, as the default label positioning placed the text above the checkbox.
Solution:
We resolved the visibility issue by adding a space to the checkbox slug, which allowed it to appear correctly on the front end. For positioning the explanation text beside the checkbox, we suggested including the text directly within the checkbox slug, ensuring it displayed as intended. To further customize the slug, allowing HTML for linking within the checkbox label, we applied a workaround from the Toolset documentation that permits HTML content in field labels.
Relevant Documentation:
https://toolset.com/errata/html-in-toolset-custom-field-labels-is-stripped-when-saving-the-fields/

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 5 replies, has 2 voices.

Last updated by Mateus Getulio 6 months, 3 weeks ago.

Assisted by: Mateus Getulio.

Author
Posts
#2694966

Hello,

I created a toolset user registration form here: hidden link

I added a checkbox, marked it as required. Added a label.

On the front end there is no checkbox there, not even in html when inspecting.
Only the label is there.

Please advise?

Thanks,

Jacques

#2695063

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

checkbox.png

Hello there,

I checked it and the issue was with the slug, it was empty.

I added an empty space and saved the form.

Now I can see it on the front end, please check the screenshot.

Thank you,

Mateus

#2695124

Thanks for that,

How can I place the explanation on the checkbox nicely besides the checkbox?
Cannot find it.
Right now I am using the Label but it puts the text above.

Thanks,

Jacques

#2695181

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Jacques,

You can add the text to the checkbox slug, it will be displayed aside the checkbox itself.

I've changed it for you, please check if this is the desired behavior.

Best,
Mateus

#2695210

Oh ok thanks,

In my mind slug meant a url like for instance : privacy-policy-agreement and not plain text.

Last question please:

Is there a way to make one of the words of the slug, a link? lets say on [privacy policy].
I tried with plain html but it messed everything up.

Thanks,

Jacques

#2695321

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Jacques,

I applied the workaround described here to allow the usage of HTML:

https://toolset.com/errata/html-in-toolset-custom-field-labels-is-stripped-when-saving-the-fields/

Now when I test it, I'm able to add a link to the checkbox slug, I added an empty link for demo purposes.

Please edit the form and change it accordingly.

Thank you.
Mateus

#2695349

Thanks a lot Matteus!