remove checkbox label

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
ushay
Veteran Member
Posts: 54
Joined: 2020-06-26 21:30

remove checkbox label

Post by ushay » 2023-04-29 09:32

Hello again,

i saw this on Helper JavaScript documention for hiding labels:

Code: Select all

new AppGiniField("name_patient").hideLabel();
it didn't work on a checkbox label, is there another way to do it?

thanks,

shay,

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: remove checkbox label

Post by jsetzer » 2023-04-29 09:54

Well, technically speaking, checkboxes do not have a descriptive label at the left of the (checkbox) control but only the label at the right hand side of the checkbox (in LTR layouts).

If you hide those labels, your users will not know the purpose of the checkboxes and therefore this would be bad user interface design and might become confusing especially with multiple checkboxes per page. I cannot recommend it.

Anyway, if you really want to, check the HTML code using browser's dev tools. Find the label element, then find the related input. Move the input element outside the label element, then hide or remove the label, using javascript.

I cannot recommend it and, by now, I'm not planning to implement such a feature for usability reasons.

But if there is good reason in your specific usecase for hiding checkbox labels, feel free to describe your aim and perhaps upload a screenshot or mockup. If this is useful, I may consider implementing a solution in a future release.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

ushay
Veteran Member
Posts: 54
Joined: 2020-06-26 21:30

Re: remove checkbox label

Post by ushay » 2023-04-29 10:25

Dear Jan,

thanks for your reply.

i have added a checkbox next to a richtext field, the idea is that the users can choose which field they want to send on a whatsapp message.
if i leave the label to my opinion it doesn't look good.
checkbox .jpg
checkbox .jpg (37.79 KiB) Viewed 2034 times
shay,

Post Reply