
Tom P
User

Feb 3, 2012, 4:29 PM
Post #4 of 7
(1229 views)
Shortcut
|
|
Re: [nmsinc] ShowHide Plugin Question
[In reply to]
|
Can't Post
|
|
Hi nmsinc, I've just tried the plugin as written (replacing the table and field names with those from my test tables) and it works. If this is for the site I think it's for, try these two blocks instead:
// For each section and list field, copy this block // Fields will start hidden if they appear in any "fields to show" list $GLOBALS['SHOWHIDE_DEPENDANT_FIELDS_CONFIG']['claims_submission']['assign_to_independent_claim_company'] = array( // list option => fields to show '' => array(), // show these fields when the topmost '<select>' option is selected 'Yes' => array('date_re_assigned','independent_company_name','number'), '_any_value_' => array(), // show these fields when a value not listed above is selected ); // For each section and list field, copy this block // Fields will start hidden if they appear in any "fields to show" list $GLOBALS['SHOWHIDE_DEPENDANT_FIELDS_CONFIG']['claims_submission']['claim_status'] = array( // list option => fields to show '' => array(), // show these fields when the topmost '<select>' option is selected 'Other' => array('status_other'), '_any_value_' => array(), // show these fields when a value not listed above is selected ); NOTE: I wasn't sure which field "number" was referring to, but replace "number" with the fieldname (from General Settings->Section Editors->claims_submission) that you want and it should be fine. NOTE: I don't have a "status_other" field in the local copy of "claims_submissions" so I tested it with "member_company_claim_id" which behaved as expected. Let me know if this helps, Tom
|