Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Use Smarty to Control Value Display
How to Use Smarty to Control Value Display?
✍: FYIcenter.com
If you want to use a single field to a complex data element, like a comma separated list,
you can use smarty template to control how the value will be processed before sending it
to display or download.
1. Create a new field type called "CSL".
2. Click "Displaying > View Field" tab on On its definition page. And enter the following smarty template.
{if $CONTEXTPAGE == "edit_submission"}
{$VALUE}
{elseif $CONTEXTPAGE == "submission_listing"}
{$VALUE}
{else}
{$VALUE|replace:',':'
'}
{/if}
The above smarty template tells Form Tools to display the field value as is without any changes on the edit sumission page and list submission page. But on the other pages, like exporting (reporting) pages, the value will be divided on the delimiter (,) and displayed as multiple lines.
Â
⇒ Using Export Manager Module
⇠Clone Phone Number Field Type
2019-11-21, ∼1956🔥, 0💬
Popular Posts:
Why I am getting the "run or save ChromeSetup.exe" pop up box when trying to install Google Chrome 3...
How do I tell what version of Outlook my computer is using? You can determine the version number of ...
Why am I getting the "Spawn Failed: Server at http://127.0.0.1:47353/u ser/fyicenter/didn't respond ...
What is "Microsoft SharePoint Server Colleague Import Add-in" COM Add-in in Outlook 2013? Should I d...
What is the difference between a Web page and a Single File Web Page? Word supports 2 Web page forma...