Changes between Version 3 and Version 4 of TracTicketChainedFieldsPlugin
- Timestamp:
- Aug 7, 2009, 4:19:27 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTicketChainedFieldsPlugin
v3 v4 4 4 5 5 Dynamicly change fields options by their parent fields. 6 7 8 For example, there are 3 fields: brand, phone, OS. When brand changes, phone field will change it's options to show only phone belongs to that brand. When phone changes, OS field will change too.9 6 10 7 == Bugs/Feature Requests == … … 50 47 == Example == 51 48 49 For example, there are 3 fields: brand, phone, OS. When brand changes, phone field will change it's options to show only phone belongs to that brand. When phone changes, OS field will change too. 50 1. Add 3 custom field in trac.ini 51 {{{ 52 [ticket-custom] 53 tcf_brand = text 54 tcf_brand.label = Brand 55 tcf_brand.order = 3 56 tcf_phone = text 57 tcf_phone.label = Phone 58 tcf_phone.order = 4 59 tcf_os = text 60 tcf_os.label = OS 61 tcf_os.order = 5 62 }}} 63 2. Go to Admin -> Chained Fields, edit the config 64 {{{ 65 { 66 "tcf_brand": { 67 "Nokia": { 68 "tcf_phone":{ 69 "5800": { 70 "tcf_os":{ 71 "Symbian": {}, 72 "Android": {} 73 } 74 } 75 } 76 }, 77 "Apple": { 78 "tcf_phone":{ 79 "iPhone": { 80 "tcf_os":{ 81 "OS X": {}, 82 "OS": {} 83 } 84 }, 85 "iPhone 3G": { 86 "tcf_os":{ 87 "OS X": {}, 88 "other": {} 89 } 90 } 91 } 92 } 93 } 94 } 95 }}} 96 52 97 === Snapshot === 53 98 [[Image(TracTicketChainedFieldsPlugin.png)]]