title: Setting checkbox true or false value from helper in Meteor
body: <p>How can I apply the stored true or false value to the checked attribute?</p>
  
  <p>I have a series of question where a user can toggle on/off (true/false) as an answer.  I have created an object called <code>questions</code> in Meteor.user().profile. The field names are the questions, and the values stored are either <code>true</code> or <code>false</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/7jLrQ.png" alt="enter image description here"></p>
  
  <p>Now I would like the attribute for each field to display the value stored instead of resetting to its default value.</p>
  
  <pre><code>&lt;template name="template"&gt;
   {{#with currentUser.profile.questions}}
   &lt;div class="row"&gt;
   &lt;input  data-name="profile.questions.school" type="checkbox"  name="questions" checked="{{school}}"&gt; Go to School?
   &lt;/div&gt;
   &lt;div class="row"&gt;
   &lt;input data-name="profile.questions.contributor" type="checkbox" name="questions" checked={{contributor}}"&gt; contributor?
   &lt;/div&gt;
   {{/with}}
  &lt;/template&gt;
  </code></pre>
  
  <p>Am I doing this the long winded way? Would using the spacebars <code>{{isChecked}}</code> method aid in anyway? <a href="https://www.discovermeteor.com/blog/spacebars-secrets-exploring-meteor-new-templating-engine/" rel="nofollow noreferrer">https://www.discovermeteor.com/blog/spacebars-secrets-exploring-meteor-new-templating-engine/</a>
  It seems as it is simply for displaying the check box.</p>