1

i have 10 RecordTypes, am showing that RecordType Names in page. In vf page i am showing the RecordType names using this line.

<apex:outputText value="{!wart.article.RecordType.Name}"/></div>

'Holiday' is one RecordType name. If the RecordType name is 'Holiday', i need to show the name 'Closing Timings'. I don't want to change RecordType Name because that is used in so many places. Only one page i need to change 'Closing Timings' instead of 'Holiday'.

1 Answer 1

1

you can do in different ways..

1.using conditional expressions in the VF page component tag like below

<apex:outputText value="{!IF(wart.article.RecordType.Name == 'Holiday','Closing Timings',wart.article.RecordType.Name)}"/>

or

2.in the apex controller used in the VF page

or

3.using javascript to replace the value client side

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .