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

@Julian Poyntz - simple but affective way to do this in the portal. Just add a container split in between the checkboxes - even if not using a container. Then there is no formatting on the portal and removes the "options" label.

Its giving me Javascript error.

Please help?

find_real_file.png

lasse3
Giga Guru

You can also hide it using CSS by adding



#"id".label {


display:none;


}



to your CSS where "id" is the id of your label. You can use Google Chrome's inspect or similar view source functionality to find the label when it is displayed to see its id attribute.


tgcorbin
Mega Contributor

Cant seem to get the Chrome inspection to work. Right clicking on the form just seems to bring up the configure variable.


Open the developer tools and click the little mouse icon with the square behind it. This should allow you to inspect the label.



Skærmbillede-6.png



Alternatively you can also view source and search for "Options" to locate the label tag.