AnsweredAssumed Answered

Change Accounts Custom Headerpane.hbs with name and city

Question asked by Richard Maletta on May 31, 2017
Latest reply on Jun 1, 2017 by André Lopes

With community help I was able to add the city to the Accounts record view

My headerpane.hbs looks like this

 

I am using custom code to make the Heading font size and color but I want

that code to fire only for the name not the city

I would love to figure out how to make the address smaller and gray.

The portion of the headpane.hbs that I have customized looks like this

<strong><span class="index{{index}}" style="font-size:18px;Color:Blue;" data-fieldname="{{name}}" data-index="{{index}}">
{{field ../../../../view model=../../../../view.model template=../../../../view.action}}
</span></strong>


I assume one method would be to either check the field or the index but I am uncertain how
the syntex would be worded for some kind of if else end

if index=1

     <strong><span class="index{{index}}" style="font-size:18px;Color:Blue;" data-fieldname="{{name}}" data-index="{{index}}">
      {{field ../../../../view model=../../../../view.model template=../../../../view.action}}
       </span></strong>

else

     <strong><span class="index{{index}}" style="font-size:12px;Color:Gray;" data-fieldname="{{name}}" data-index="{{index}}">
     {{field ../../../../view model=../../../../view.model template=../../../../view.action}}
     </span></strong>

end if

Outcomes