The CreatorCon Call for Content is officially open! Get started here.

Hide 'options' above checkboxes

tgcorbin
Mega Contributor

I am creating two checkboxes, but when I do so, it puts the label of 'options' above it. I want to remove this. I know I can put a label above it for my own custom text, or I can put the first checkbox in a container, but I do not like either of those solutions. Any ideas?

checkboxes.PNG

Thanks

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

You have to write a onLoad client script after you create a label to hide it.


$('label_IO:7817abedad4c3100dd49a5edb9ba2a38').hide(); //Replace this with the sys_id of the label you created.



NOTE: To hide a label first you have to create a label and then write a client script to hide it.



Regards,


Sachin


View solution in original post

24 REPLIES 24

tgcorbin
Mega Contributor

This appeared to work, but oddly enough, it doesn't look like my label has an ID. Really weird?


tgcorbin
Mega Contributor

UPDATE: After much digging around in the code, I got the sys_id. Thanks to the both of your for your help.


You are welcome. Glad I could help 🙂


jochenweishaar
Kilo Contributor

It is even easier:



- You can overwrite the default label with a custom label


- Then simply create a UI policy which hides this custom label (e.g on load)


rfaulkner
Tera Expert

I added a break variable between each checkbox to avoid the Options label. The UI policy removes the label as well as the checkboxes and the script with the sys_id kept throwing errors.