Jump to content


I need 2 types of edit for one table, each type will contain different fields. how can i do it using GC ?

Custom Fields

  • Please log in to reply
2 replies to this topic

#1 Hasnain Shahriar

Hasnain Shahriar

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 March 2016 - 01:41 PM

I need 2 types of edit for one table, each type will contain different fields. how can i do it using GC ?

 



#2 fractorr

fractorr

    Member

  • Members
  • PipPip
  • 10 posts

Posted 29 March 2016 - 04:21 PM

The way I did this was to have a drop down field for record type, then added some JavaScript so that when the field is changed I hide and show fields as needed.  I actually use the gc_with_tabs extension and just hide / show certain tabs instead of hiding / showing a list of fields.



#3 titu

titu

    Advanced Member

  • Members
  • PipPipPip
  • 43 posts

Posted 30 March 2016 - 02:46 AM

you can just create two controllers with the same set_table but different add_fields and edit_fields.







Also tagged with one or more of these keywords: Custom Fields

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users