Single checkbox NOT selected by default

13 years 6 months ago #144052 by saraheagle
Single checkbox NOT selected by default was created 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!

Please Log in to join the conversation.

13 years 6 months ago #144066 by krileon
Replied by krileon on topic Re:Single checkbox NOT selected by default

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 - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.281 seconds

Facebook Twitter LinkedIn