Skip to main content
Hello All,

 

We've just installed a free helpdesk package that we'd like to use in our internal community and would like to change the fields on the standard create case page. Here is an exerpt of the code...

 

<div class="form-group"> <apex:outputLabel rendered="{!$ObjectType.Case.fields.Reason.Accessible}" value="{!$ObjectType.Case.fields.Reason.label}" for="Reason" styleClass="{!IF(displayKnowledgeOnCreation,'col-md-3','col-md-2')} control-label" /> <div class="col-md-9 col-sm-12"> <apex:inputField id="Reason" styleClass="form-control" value="{!aCase.Reason}"/> </div> </div>

 

Id like to swap the standard "Reason" picklist with a lookup field to a custom object called "IT_Asset__c"

 

Any help would be greatly appreciated!

 

Thanks
3 respostas
  1. 24 de out. de 2014, 06:10
    You say standard case cretate page - how did you get the code above? right click or from a visualforce page.

     

    If standard you can just edit the page layout and swap the fields over as long as the package is umanaged otherwise you will need to use / edit the existing visuaforce page. Was the case page overriden with Visualforce?

     

    Change would be something like this I would guess:

     

    Field

    ObjectType.Case.fields.IT_Assets__c

    Label

    ObjectType.Case.fields.IT_Assets__c.label

     

    If you need more help I would head over here:

     

    Developer Boards

     

    https://developer.salesforce.com/forums/#!/feedtype=RECENT&criteria=UNANSWERED

     

    Stack Exchange

     

    http://salesforce.stackexchange.com/

     

     
0/9000