We're using types, layouts and CRED to allow our partners to submit an update about their work via our website. You can see the live CRED form here: hidden link and I'm pasting the code for it below.
You'll see from the live form that we have checkboxes for categories but what we'd really like to do is have that hidden to the user and have all submissions going through this form be automatically assigned to our "Partner Updates" category.
Can you tell me how I can achieve that? Thanks very much.
----
<h2 class="entry-title">Project Update Form</h2>
[credform class='cred-form cred-keep-original']
[cred_field field='form_messages' value='' class='alert alert-warning']
<p> </p>
<p> Rather than require a detailed report, we ask that you answer a few questions to update us on your project’s progress. Short, informal answers of 1-3 sentences each are fine. We also ask that you upload a recent photo showing your garden and, ideally, some of the people involved in it or benefitting from it. PLEASE NOTE: your answers and photo will be posted to our website so please watch your spelling and please be sure that you have the permission of any people appearing in your photos.</p>
<p> </p>
<div class="form-group">
<label>What is your full name?</label>
[cred_field field='updateauthorname' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>What is your email address?</label>
[cred_field field='updateauthoremail' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>What is the name of your garden project?</label>
[cred_field field='post_title' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Where is your project located? </label>
[cred_field field='updateprojectaddress' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>How many people does your project reach or impact in a DIRECT way?</label>
[cred_field field='updateprojectreach' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>What were your biggest successes this season?</label>
[cred_field field='updatesuccessfield' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>What challenges did or does your project face?</label>
[cred_field field='updatechallengefield' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>How are you working to overcome them?</label>
[cred_field field='updateovercomefield' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>What did you or your project learn this season that might be useful to others as well?</label>
[cred_field field='updatelearnfield' post='update' value='' urlparam='' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Categories</label>
[cred_field field='category' display='checkbox' output='bootstrap' value='checked']
</div>
<div class="form-group">
<label>Upload main photo</label>
[cred_field field='updateimage' post='update' value='' urlparam='' output='bootstrap']
</div>
<div class="form-group">
<label>Upload photo for thumbnail</label>
[cred_field field='_featured_image' value='' urlparam='' output='bootstrap']
</div>
[cred_field field='recaptcha' value='' urlparam='' class='form-control' output='bootstrap']
<p> </p>
[cred_field field='form_submit' value='Submit' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
[/credform]