__IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.__
Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:
I just want to know how can i take my custon field 1 to the top of the add new item form.If it is related to coding kindly tell me the file name and the code, please..I will be really thankful for any kind of help
Is Custom 1 the only Custom field you are using? If so you can change the placement of application/views/items/form.php. Towards the bottom of the form you will see the following code.
<?php
for ($i = 1; $i <= 10; ++$i)
{
?>
<?php
if($this->config->item('custom'.$i.'_name') != null)
{
$item_arr = (array)$item_info;
?>
<div class="form-group form-group-sm">
<?php echo form_label($this->config->item('custom'.$i.'_name'), 'custom'.$i, array('class'=>'control-label col-xs-3')); ?>
<div class='col-xs-8'>
<?php echo form_input(array(
'name'=>'custom'.$i,
'id'=>'custom'.$i,
'class'=>'form-control input-sm',
'value'=>$item_arr['custom'.$i])
);?>
</div>
</div>
<?php
}
}
?>
You can then place that code towards the top of the form. If you are using more Custom fields they will now also show.
Hey Odiea, Thanks for helping me out...I just pick up the custom field code and put it where i want.
Its works fine for me thanks a lot