![]() |
Pre-checked custom profile field
I want to set up a checkbox custom profile field "Receive weekly digest" (like the default "Receive Email from Administrators" field). I want this to display at registration and to be pre-checked.
Is this possible? |
Is it possible? Of course - anything is possible if you code it. If you are wondering if it already exists as a modification, then I would ask if you have tried a search yet? I do not know of a mod for this offhand.
|
Yes I have tried a search.
Anyone got any ideas how I can do it? |
Create a User Profile Field, set it up to show at registration, and set the default for it to be checked. https://www.vbulletin.com/docs/html/profile
(Sorry, at first I thought you were asking about something else.) |
Quote:
|
Why not use a single-selection radio button with Yes/No as the answer and preset it to Yes? Your other option is for you to custom code it.
|
Quote:
|
You cannot do it using the user profile fields. You would need to custom code it if you want it prechecked.
Another option is do do the opposite - instead of "Check if you wish to receive a weekly site newsletter", go with "Check if you do NOT wish to receive the weekly site newsletter". |
Quote:
|
The code for making the box would be something like:
Code:
<input type="checkbox" name="digest" value="Yes" checked="checked" /> |
All times are GMT. The time now is 07:06 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|