Set A Checkbox To "checked" By Default

I added a field to the user registration. It asks the user if they would like to receive promotional emails.

I would like to set the box to "Checked" by default. Can someone point me in the right direction?

See images. Thank you !!!!

**************************************************************************************************************************

**************************************************************************************************************************

**************************************************************************************************************************

**************************************************************************************************************************

Try to replace

{if $value == "Y"}checked="checked"{/if}

with

{if $value == "Y" || !$value}checked="checked"{/if}

Do not forget to clear cache

You are awesome eComLabs.... That worked. Thank you :grin:

You are welcome!