Form:SampleForm: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 8: Line 8:
</noinclude><includeonly>
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|Sample Template}}}
{{{info|page name=Token placeholder error[option]> <unique number>}}}
Item:
{|class=wikitable
{{{field|Item|input type=combobox|cargo table=Items|cargo field=_pageName}}}
!Select an option
 
|{{{field|option|input type=radiobutton|values=A,B|default=A|mandatory|show on select=A=>optionA;B=>optionB}}}
{| class="formtable"
|
! Newspaper:  
<div id=optionA>The placeholder text is visible here, because the field is visible when the form opens:<br>{{{field|OptA|input type=tokens|values=one, two, three, four, five|placeholder=A multiple selections allowed.}}}</div>
| {{{field|publication|show on select=circulation|input type=checkbox}}}
<div id=optionB>The placeholder text is '''NOT''' visible here, because the field is '''NOT''' visible when the form opens:<br>{{{field|OptB|input type=tokens|values=uno, dos, tres, quatro, cinco|placeholder=B multiple selections allowed.}}}</div>
! Magazine:  
| {{{field|publication2|show on select=unique-visitors|input type=checkbox}}}
|}
|}
<div id="circulation">
{|
! Circulation:
| {{{field|circulation}}}
|}
</div>
<div id="unique-visitors">
{|
! Monthly unique visitors:
| {{{field|monthly unique visitors}}}
|}
</div>
{{{end template}}}
'''Free text:'''
{{{standard input|free text|rows=10}}}
</includeonly>
</includeonly>

Latest revision as of 19:54, June 2, 2023

This is the "SampleForm" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.