Set checkbox state
jQuery('#dwfrm_profile_newsletter').attr('checked', function(){ var status = ${pdict.ETSubStatus}; if(status === true){return 'checked'}; });