Menu

hiding a portal required field

tecnoway
2011-01-30
2012-12-19
  • tecnoway

    tecnoway - 2011-01-30

    How can I hide a portal required field like workgroup_id for example ? I prefer the field to be assigned by the agente ….

     
  • Denis

    Denis - 2011-01-31

    There is a constraint on the workgroup (workgroup_id): the possible values are defined by the customer contract(s). So the end user cannot choose anything…

    However if you want to hide this from the end user, it should be easy to patch  (but I haven't tested it yet).

    Edit the file portal/index.php.

    Modify the line 36:

        return array('org_id', 'caller_id', 'service_id', 'servicesubcategory_id', 'request_type', 'title', 'description', 'impact', 'urgency', 'workgroup_id');
    

    The line 209:

        $aList = array('request_type', 'title', 'description', 'impact', 'urgency', 'workgroup_id');
    

    And the line 351:

        $aList = array('service_id', 'servicesubcategory_id', 'request_type', 'title', 'description', 'impact', 'urgency', 'workgroup_id');
    

    Just remove 'workgroup_id' from the three lists.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.