⚠ 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

Dropdown list description



Tiberiu Oltean
  • profile picture
  • Member

Posted 21 December 2015 - 21:34 PM

http://prntscr.com/9gyzpb

 

Hello I have 2 problems. first to put description content from dropdown menu, for simple input i resolve witth calback function but in my case don't work,

 second I have 56 fields in my form and I must put some chapter title.

 

Thank

 


Amit Shah
  • profile picture
  • Member

Posted 24 December 2015 - 05:24 AM

Hi 

 

For your issue of tips

You can refer to the solution embedded inside - https://github.com/blakdronzer/POWER-GCrud. I am sorry but cannot write much notes on the same right now but over the weekend i will surely roll things in with the same. This involves altering the Grocerycrud library itself to embed it across.

Once you have altered the library, you can simply attach a tip / description to the fields using the following function

$crud->field_tip('duration', 'Enter duration in hh:mm:ss like 00:05:29');

The alteration is in the GC core library to accept and set the tips for specific fields. Second, send the same to the views for generation. 3, in the views to display the tips. If you can extract the same, excellent, if not then watch out the same over weekend.

 

For your issue of having captions / categories for 56 fields,

theres one solution - https://github.com/blakdronzer/gc_with_tabs

 

You can also extract and use Grocery_crud_with_groups (library extension from the following url:

https://github.com/blakdronzer/POWER-GCrud

You can refer to https://github.com/blakdronzer/POWER-GCrud/wiki/New-Features---Enhancements

look for grouped - Add / Edit / Read

 

Happy GCing :)


Tiberiu Oltean
  • profile picture
  • Member

Posted 25 December 2015 - 13:18 PM

Thanks for your support... I try to implement tabs form for chapter title...


Tiberiu Oltean
  • profile picture
  • Member

Posted 28 December 2015 - 07:23 AM

Hi Amit, i resolve my las issue http://prntscr.com/9jc4ne

, but now I find solution for input extra number of quantity in n to n relation here is example http://prntscr.com/9jc5rk

Thanks