<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://wikibase.nl/Special:URIResolver/'>
	<!ENTITY category 'http://wikibase.nl/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://wikibase.nl/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://open-csp.org/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/ShowOnSelect">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-30T14:54:15+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/ShowOnSelect">
		<rdfs:label>ShowOnSelect</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/ShowOnSelect"/>
		<swivt:page rdf:resource="https://open-csp.org/DevOps-3ADoc/FlexForm/2.0/ShowOnSelect"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en</swivt:wikiPageContentLanguage>
		<property:Class rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc</property:Class>
		<property:Doc_sort_order rdf:datatype="http://www.w3.org/2001/XMLSchema#double">225</property:Doc_sort_order>
		<property:Doc_subject rdf:resource="&wiki;DevOps-3ADoc/FlexForm"/>
		<property:Doc_synopsis rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Show or hide elements based on a form input change</property:Doc_synopsis>
		<property:Doc_target_group rdf:datatype="http://www.w3.org/2001/XMLSchema#string">User</property:Doc_target_group>
		<property:Doc_title_with_versions rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ShowOnSelect (2.0,2.1,2.5)</property:Doc_title_with_versions>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.0</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.1</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.5</property:Subject_version>
		<property:Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ShowOnSelect</property:Title>
		<property:Has_query rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/ShowOnSelect-23_QUERY06f788e586bf848f8f832d67ce361abc"/>
		<swivt:wikiPageCreationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-01-04T13:08:51Z</swivt:wikiPageCreationDate>
		<property:Creation_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2459949.0478125</property:Creation_date-23aux>
		<property:Display_title_of rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ShowOnSelect</property:Display_title_of>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-03-30T07:35:32Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2461129.8163426</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/ShowOnSelect</swivt:wikiPageSortKey>
		<property:Page_creator rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AMaintenance_script"/>
		<property:Page_author rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AFd4138e7-2D8b46-2D4c8f-2D99bf-2Dd4b738ebc295"/>
		<property:Page_ID rdf:datatype="http://www.w3.org/2001/XMLSchema#double">359</property:Page_ID>
		<property:External_links rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://wikibase-solutions.com/developer-logs/flexform-show-on-select?WSLanguage=en</property:External_links>
		<property:Parsed_text rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Name 
 showonselect
 
 Type 
 form
 
 Synopsis 
 Show or hide elements based on a form input change.
 
 Description 
 This allows to show elements in a form based on a selection option, a checkbox status or radio button status.
 You can create a complete form with certain form elements hidden based on a selection in the form done by a user.
 
 Parameters 
  show-on-select on the form tag 
 For it all to work you must let FlexForm know you want to use Show On Select by adding a parameter to the form tag. See example 1 .
 
 
  show-on-select on a select field 
 The actual show-on-select attribute is added to an option field within a select field.
The value of show-on-select will be used to show a show-on-select-trigger with the same name. See example 2 .
 This will show an additional text input field with the name texttest1 when you select option 1 and texttest2 will be hidden. When option 2 is chosen, then texttest2 will be shown and texttest1 hidden.
 
 
  show-on-checked on a radio button 
  Example 3 shows you can also add a show-on-select-trigger to something different than a FlexForm input field.
The example will hide the div with the trigger until the radio button is checked.
 
 
  show-on-checked on a checkbox and show-on-unchecked on a checkbox 
  Example 4 shows an example of how to use show-on-checked for a checkbox field.
Checkboxes can have an additional option called show-on-unchecked. So, in the example, if a checkbox is unchecked it will show test B and hide test A. If the checkbox is checked it wish show test A and hide test B
  Example 5 shows an example of how to use show-on-select when a certain value is equalled.
You can use this on e.g. an input field of type text. When a certain text is entered and it equals a predefined value it will trigger the show on select
  Example 6 shows an example of how to use show-on-select when a certain value is found.
You can use this on e.g. an input field of type text. When a certain text is entered and it contains a predefined value it will trigger the show on select
  Example 7 shows an example of how to use show-on-select when one or two conditions need to be selected before show-on-select is triggered. ( OR Trigger )
The example will show a div when a value is selected in a selectbox OR a checkbox has been checked
  Example 8 shows an example of how to use show-on-select when two conditions need to be selected before show-on-select is triggered. ( AND Trigger )
The example will show a div when a value is selected in a selectbox AND a radio button has been selected
 
 Example 
 Example 1 : Show or hide elements based on a form input change
 
   &lt; form  action = "addToWiki"  show-on-select = "show-on-select" &gt; 
 &lt;/ form &gt; 
 
 
 Example 2 : show-on-select on a select field
 
   &lt; form  show-on-select = "show-on-select" &gt; 
	 &lt; select  name = "selectme"  id = "selectme"  &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId2"  selected = "selected"  value = "1" &gt; 1 &lt;/ option &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId"  value = "2" &gt; 2 &lt;/ option &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId3"  value = "3" &gt; 3 &lt;/ option &gt; 
	 &lt;/ select &gt; 
	 &lt; input  type = "text"  show-on-select-trigger = "testingId"  name = "texttest1"  value = "2"  /&gt; 
	 &lt; input  type = "text"  show-on-select-trigger = "testingId2"  name = "texttest2"  value = "1"  /&gt; 
 &lt;/ form &gt; 
 
  
 
 

	 		 1 
		 2 
		 3 
 
	 
	 
 
 
 Example 3 : show-on-checked on a radio button
 
   &lt; form  show-on-select = "show-on-select" &gt; 
	 &lt; input  type = "radio"  show-on-checked = "tester" /&gt; 
	 &lt; div  show-on-select-trigger = "tester" &gt; 
		test checked
	 &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 

	 
	 
		test checked
	 
 
 
 Example 4 : show-on-checked on a checkbox and show-on-unchecked on a checkbox.
 
   &lt; form  show-on-select = "show-on-select"  restrictions = "lifted"  &gt; 
	 &lt; input  type = "checkbox"  show-on-checked = "test A"  show-on-unchecked = "test B"  /&gt; 
	 &lt; div  show-on-select-trigger = "test A" &gt; test checked &lt;/ div &gt; 
	 &lt; div  show-on-select-trigger = "test B" &gt; test unchecked &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 
 

	 
	 test checked 
	 test unchecked 
 
 
 Example 5 : show-on-select when a user input equals a predefined value
 
   &lt; form  show-on-select = "show-on-select"  &gt; 
	 &lt; input  type = "text"  show-on-select = "testingId"  name = "test"  /&gt; The predefined value is "testingValue"
	 &lt; div  show-on-select-trigger = "testingId"  show-on-select-type = "equals::testingValue"  &gt; 
		 &lt; span &gt; Show this when the input value is equal to the text: testingValue &lt;/ span &gt; 
	 &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 

	 The predefined value is "testingValue"
	 
		 Show this when the input value is equal to the text: testingValue 
	 
 
 
 Example 6 : show-on-select when a user input contains a predefined value
 
   &lt; form  show-on-select = "show-on-select" &gt; 
	 &lt; input  type = "text"  show-on-select = "testingId"  name = "test"  /&gt; The predefined value is "testingValue"
	 &lt; div  show-on-select-trigger = "testingId"  show-on-select-type = "contains::testingValue" &gt; 
		 &lt; span &gt; Show this when the input value is equal to the text: testingValue &lt;/ span &gt; 
	 &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 

	 The predefined value is "testingValue"
	 
		 Show this when the input value contains to the text: testingValue 
	 
 
 
 Example 7 : The example will show a div when 2 is selected in the select box OR the checkbox has been checked
 
   &lt; form  show-on-select = "show-on-select" &gt; 
	 &lt; select  name = "selectme"  id = "selectme"  &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId2"  selected = "selected"  value = "1" &gt; 1 &lt;/ option  &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId"  value = "2" &gt; 2 &lt;/ option  &gt; 
		 &lt; option  for = "selectme"  show-on-select = "testingId3"  value = "3" &gt; 3 &lt;/ option  &gt; 
	 &lt;/ select &gt; 
	 &lt; input  type = "checkbox"  show-on-checked = "test A"  /&gt; 

	 &lt; div  show-on-select-trigger = "testingId||test A" &gt; 
		This will be shown if one of the conditions is true
	 &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 

	 		 1 
		 2 
		 3 
 
	 

	 
		This will be shown if one of the conditions is true
	 
 
 
 Example 8 : The example will show a div when 2 is selected in the select box AND the radiobutton is selected
 
   &lt; form  show-on-select = "show-on-select" &gt; 
	 &lt; select  name = "selectme"  id = "selectme2"  &gt; 
		 &lt; option  for = "selectme2"  show-on-select = "testingId2"  selected = "selected"  value = "1" &gt; 1 &lt;/ option  &gt; 
		 &lt; option  for = "selectme2"  show-on-select = "testingId"  value = "2" &gt; 2 &lt;/ option  &gt; 
		 &lt; option  for = "selectme2"  show-on-select = "testingId3"  value = "3" &gt; 3 &lt;/ option  &gt; 
	 &lt;/ select &gt; 
	 &lt; input  type = "radio"  show-on-checked = "test A"  /&gt; 

	 &lt; div  show-on-select-trigger = "testingId&amp;&amp;test A" &gt; 
		This will be shown if both conditions are true
	 &lt;/ div &gt; 
 &lt;/ form &gt; 
 
  
 
 

	 		 1 
		 2 
		 3 
 
	 

	 
		This will be shown if both conditions are true
	 
 
 Note 
 Form fields that are in a hidden section will not be submitted together with the form! 
 Currently if the AND or OR triggers are wrongly defined, no form will be rendered. It's on the list to be fixed. 
 There is one notable difference between the way FlexForm and Page Forms let you tie multiple selectors to the same selectable area, aside from differences in their choice of attributes. Where PageForms insists that each selectable area has a unique ID and lets you connect it to one or multiple selectors, FlexForm lets you assign one or multiple identifiers ( show-on-select-trigger ) to each selectable area while insisting that the show-on-select attributes are unique to individual selectors. 
 When you have multiple select elements in a form, you need to add the  for=  argument to every option field. The value should be the value of the select  id  argument. This ways, regardless in what order MediaWiki will parse the form element, FlexForm will always know what option fields belong to what select element. 
 Links 
 Tutorial on show-on-select : https://wikibase-solutions.com/developer-logs/flexform-show-on-select?WSLanguage=en</property:Parsed_text>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/ShowOnSelect-23_QUERY06f788e586bf848f8f832d67ce361abc">
		<swivt:masterPage rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/ShowOnSelect"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<property:Query_depth rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Query_depth>
		<property:Query_format rdf:datatype="http://www.w3.org/2001/XMLSchema#string">plainlist</property:Query_format>
		<property:Query_size rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:Query_size>
		<property:Query_string rdf:datatype="http://www.w3.org/2001/XMLSchema#string">[[:DevOps:Doc/FlexForm/2.0/ShowOnSelect]]</property:Query_string>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/ShowOnSelect# QUERY06f788e586bf848f8f832d67ce361abc</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AClass" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_sort_order" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_subject" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_synopsis" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_target_group" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_title_with_versions" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ASubject_version" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ATitle" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AHas_query" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageCreationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ACreation_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADisplay_title_of" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_creator" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_author" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_ID" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AExternal_links" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AParsed_text" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#masterPage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_depth" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_format" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_size" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_string" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>