Hi,
I am trying to give a css class to the categories element in one of my forms using the class box.
I have typed “scheme_submisson_catagory_random” into the box but then when I inspect the form from the front end the class doesn’t appear.
The reason I want to do this is so that I can hide some of the categories in one of my forms (but not the others)
Thanks for your help and great plugin!
Lukas Feddern
Hi Lukas,
You’ve found a bug here. It is fixed for the next major release (1.3.0) and I could try porting that to the 1.2 branch if you wished, but I’m not sure it would help here for what you wanted to do. The class setting will assign the (same) specified class to each of the checkboxes.
The 1.3.0 release will make it possible to exclude categories – there’ll be no user interface for this, but with a few lines you could remove specified terms (and do so conditionally, based on the form).
However, each category term has a unique ID (#event-category-<category-id>
) which you could use to hide particular terms.
Stephen Harris
This is quite important for me so I think I will have to bodge it and have a different template for each of the forms calling a different style sheet, so I can have some categories hidden on one form and others hidden on the second form (hidding via id). Does this sound sensible?
Also I am using the software to submit events as well as deadlines – where is the text to change “Event start time” just to start time?
1.3. should great. Have you got an eta for it yet?
Thanks for your help
Lukas Feddern
Achieved what I wanted by using a different template and stylesheet for that template. Thanks
Lukas Feddern
Hi Lukas,
Just to reply to your earlier comment.
so I can have some categories hidden on one form and others hidden on the second form
-
as noted each category as unique HTML id attribute you can use to hide it. Most themes will also give a unique ID to the <body>
tag, so you can target specific categories on specific pages. If your theme does not, you could always enclose the shortcode for the event form in a <div>
with some unique ID you then use in the stylesheet.
“ where is the text to change “Event start time” just to start time?
There is a ‘label’ setting for this field in the form customiser.
Stephen Harris