Single checkbox NOT selected by default

8 years 11 months ago #144052 by saraheagle
Is it possible to have a single checkbox NOT selected by default?

For example I am adding a bit of extra code so that when a user ticks this box it also sends an email to the website admin. I dont want this to happen everytime a user updates their details. Only when the checkbox is checked.

Thanks!
8 years 11 months ago #144066 by krileon

Is it possible to have a single checkbox NOT selected by default?

That would mean it would have to not be stored in the database, but still be in the POST. You could using a delimiter field write an HTML input. Beyond that no, as the users selection will store in database and when editing their profile will reflect this.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Moderators: beatnantkrileon
Time to create page: 0.373 seconds
Facebook Twitter Google LinkedIn