Home › Forums › Calendar Products › Events Calendar PRO › hide custom field from events submission form
- This topic has 8 replies, 3 voices, and was last updated 7 years, 11 months ago by Joe.
-
AuthorPosts
-
May 27, 2016 at 4:23 am #1119634JoeParticipant
Hi there. I’m wondering if it is possible to hide a single custom field from the community events submission form? I’d like admins to be able to check a box which is set up as one of the custom fields (e.g. verified event), but I don’t want event organisers to be able to see this box.
My end goal is for users to, using the filters, be able to filter out unverified events. But of course event organisers can’t verify their own events, if that makes sense!
Thank you.
May 27, 2016 at 9:48 am #1119806GeoffMemberHowdy Joe!
Absolutely. You should be able to hide the custom fields from the Community Events submission form by adding this to either your theme’sย style.css file or using the Simple Custom CSS plugin:
#event_custom { display: none; }
Will that work for you? Please let me know. ๐
Cheers!
GeoffMay 31, 2016 at 5:29 am #1120581JoeParticipantHi Geoff,
Thanks for your quick reply. I was wondering if there was a way to hide one particular custom field, and leave the rest visible? Or alternatively to add a custom field that is only visible from the back end?
Many thanks
May 31, 2016 at 8:40 am #1120665GeoffMemberHi Joe,
You could still likely use CSS to accomplish hiding one particular custom field. For example, the first one:
#event_custom:first-child { display: none; }
There may very well be other ways to do this but I believe that would take a fair bit of custom development.
Cheers,
GeoffMay 31, 2016 at 11:25 am #1120786JoeParticipantHi Geoff,
Thanks for the quick reply. That solution would work perfectly for me. However the code did not work unfortunately ๐
June 1, 2016 at 7:31 am #1121140GeoffMemberHi Joe,
Here’s something that works for me when trying to hide the first custom field on the page:
.tribe-events-community-details tr:nth-child(2) { display: none; }
Doesย that work for you too? Please let me know. ๐
Cheers!
GeoffJune 2, 2016 at 4:04 am #1121530JoeParticipantAh you are amazing – that has done the job perfectly! Thank you for your very quick and expert help with this!
June 2, 2016 at 6:55 am #1121584GeoffMemberMy pleasure! I’m so glad that did the trick. ๐
I’ll go ahead and close this thread but please feel free to open a new one if any other questions pop up — we’d be more than happy to help.
Cheers and thanks for using the plugins!
Geoff
-
AuthorPosts
- The topic ‘hide custom field from events submission form’ is closed to new replies.