List Field
Access
{{reader}}
Favourite Pages
{{pageEntry.pageName}}
Signed in as {{currentUser}} {{avatar}}
Sign Out
Sign In as Different User
{{currentUserExtraOptions}}
OpenForum
Extensions
ListField
Inserts a form input field.
Parameters
name - the field name list - the list name value - optional value
Usage:
[{ListField name="beetle" list="names"}]
{{optionValue}}
Your Beetle is {{beetle}}
//OpenForum/Extensions/ListField/renderer.sjs
name = extension.getAttribute("name"); value = extension.getAttribute("value"); action = extension.getAttribute("action"); list = extension.getAttribute("list"); listField = extension.getAttribute("listField"); if(value==null) { value=""; } if(listField==null) { listField = "optionValue"; } else { listField = "optionValue."+listField; } var onChange = ""; if(action!=null) { onChange = "onChange='"+action+"(); return false;'"; } var uid = ( ""+Math.random() + new Date().getTime() ).replace(".",""); return "
" + "
\n
{{" + listField + "}}
\n
";
An error has occurred.
{{OpenForum.errorMessage}}
See technical details
×
Error details.
{{OpenForum.error}}
×
{{OpenForum.alert.title}}
{{OpenForum.alert.message}}
×