⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to modify select option value



pbcomput

pbcomput
  • profile picture
  • Member

Posted 18 December 2013 - 13:36 PM

Hello,

 

I am new to Grocery Crud. I am working on user module. I want to modify the select box of user type on User Add/ Edit form.  User have 2 types, and I took ENUM data type to manage user's type. 

 

Currently I am getting like this

 

<select id="field-member_type" name="member_type" class="chosen-select chzn-done" data-placeholder="Selectionner Member type">

<option value=""></option>

<option value="u">u</option>

<option value="a">a</option>

</select>

 

I need output this select box like below

 

 

<select id="field-member_type" name="member_type" class="chosen-select chzn-done" data-placeholder="Selectionner Member type">

<option value=""></option>

<option value="u">User</option>

<option value="a">Admin</option>

</select>

 

I know the callback method but I want to know if there is any other method to achieve this.

 

Thanks,

Palak