The Form below has fields with a couple of options, for example:
<option value="0">{{LANG public}}</option>
<option value="1">{{LANG private}}</option>
<option value="2">{{LANG unlisted}}</option>
I’d like to change the Form so that the only choice is “public” and hide the whole field, but the script will recognize that all Form uploads are the “public” choice.
Any help with this will be appreciated. Here is the Form code:
<form action="" class="form-horizontal setting-panel pt_forms" method="POST">
<div class="form-group">
<label class="col-md-12" for="title">{{LANG video_title}}</label>
<div class="col-md-12">
<input id="title" name="title" type="text" placeholder="" class="form-control input-md">
<span class="help-block">{{LANG video_title_help}}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="description">{{LANG video_descritpion}}</label>
<div class="col-md-12">
<textarea name="description" id="description" cols="30" rows="5" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="category_id">{{LANG category}}</label>
<div class="col-md-12">
<select name="category_id" id="category_id" class="form-control">
<?php foreach($pt->categories as $key => $category) {?>
<option value="<?php echo $key?>"><?php echo $category?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="privacy">{{LANG privacy}}</label>
<div class="col-md-12">
<select name="privacy" id="privacy" class="form-control">
<option value="0">{{LANG public}}</option>
<option value="1">{{LANG private}}</option>
<option value="2">{{LANG unlisted}}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="age_restriction">{{LANG age_restriction}}</label>
<div class="col-md-12">
<select name="age_restriction" id="age_restriction" class="form-control">
<option value="1" selected>{{LANG all_ages}}</option>
<option value="2">{{LANG only_18}}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="tags">{{LANG tags}}</label>
<div class="col-md-12">
<input id="mySingleFieldTags" name="tags" type="text" placeholder="" class="form-control input-md">
<span class="help-block">{{LANG tags_help}}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-12" for="thumbnail">{{LANG thumbnail}}</label>
<div class="col-md-12">
<div class="upload-product-image pull-left" onclick="document.getElementById('thumbnail').click(); return false">
<div class="upload-image-content">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-camera"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>
</div>
</div>
<div style="overflow-x: auto;width: calc(100% - 112px);">
<div id="productimage-holder"></div>
</div>
<input id="thumbnail" name="thumbnail" type="file" class="hidden" accept="image/*">
<span class="help-block">jpg, png, gif</span>
</div>
</div>
<div class="last-sett-btn modal-footer" style="margin: 0px -40px -10px -40px;">
<button type="submit" id="submit-btn" class="btn btn-main setting-panel-mdbtn" disabled><svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check-circle'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'></path><polyline points='22 4 12 14.01 9 11.01'></polyline></svg> {{LANG publish}}</button>
</div>
<input type="hidden" name="video-location" id="video-location" value="">
</form>