在自定义标签中使用HTML标签(e.g. 换行符)
- 7月
- 12
- Posted by Lin
- Posted in Custom Label, Salesforce, Visualforce
Custom Label is a really useful feature in Salesforce, not only can be edited after deployed, but also can be used for making an app multilingual with Translation Workbench.
If you want to use HTML tag with it on Visualforce Page, e.g. <br /> tag, the only thing you need to do is using an unescaped Apex:outputText , as the following:
And the Metadata it was generated looks like the below :
Enjoy it!
If you want to use HTML tag with it on Visualforce Page, e.g. <br /> tag, the only thing you need to do is using an unescaped Apex:outputText , as the following:
VF Page
Custom Label
The interface of Custom Label looks like the below:
And the Metadata it was generated looks like the below :
Enjoy it!
近期文章
- Salesforce DevTools Release Notes (version 3.9.0)- Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools的开发者用户突破10,000名!THANK YOU!
- Lightning Component中使用Promise处理Apex服务端请求
- Pipeline for Salesforce – Be less busy, less mistake in Salesforce metadata deploy
Top Posts
- Salesforce DevTools – Saleforce.com开发者必备Chrome扩展 - 146K views
- 用Sublime Text 3架设Salesforce的快速开发环境 - 111.9K views
- Date format 与 DateTime format - 105.7K views
- Salesforce批量编辑 (Chrome扩展) – 在任何标准视图上进行批量插入, 拷贝, 更新, 删除, 支持Classic与Lightning! - 91.5K views
- 编写一个可被计划执行的Batch Apex - 68.9K views
分类目录
- APEX
- 应用
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- 交流会
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
您必须登录才能发表评论。