<templates:faq>
AJAX
Data
Forms
Layout
Logic
Navigation
Personalisation
Standard
Templates
ATTRIBUTES
EXAMPLES
Regions
Third Party

<templates:faq> </...>

A template element that can be clicked to open a dropdown and reveal hidden content.

Use cases: - Question and answer sections - Expanding information boxes - Collapsible areas - Hiding additional information

Content

any
The content to render inside the FAQ.

Attributes

id
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).

Examples

Basic FAQ

Display frequently asked questions

HTML:

<templates:faq label="How to create an account?"> <p>Answer 1.</p> </templates:faq> <templates:faq label="What are the mode of payments"> <p>Answer 2.</p> </templates:faq>

Run Example