After reading the documentation
properly I find that I need to supply default values for the checkbox unless it's only purpose is as a dependency for a fieldset.
When I do that the checkbox value is available for use in a destination page. e.g.:-
<form>
action template _ hardware:@@HardwareType@@:"@@Hardware Name@@:start"
Select "HardwareType" "Computers|Modems|Phones|Printers|Scanners"
YesNo "Test" "=Yes" "!No"
Fieldset
Submit "Create a New record"
</form>
[/color]
If relevant template is:-
====== @@Hardware Name@@ ======
---- dataentry @@HardwareType@@----
Test : @@Test@@
----
Test = @@Test@@
[/color]
Then the value in
YesNo Test will appear in the target page in both the main part of the page, and in the
dataentry section (if
Modems is selected as
HardwareType). e.g.:-
====== Roadster ======
---- dataentry Modems----
Test = Yes
----
Test : Yes
[/color]
But - if the
YesNo field is in a fieldset dependency - it won't (so I need to dig through the Bureaucracy code). e.g.:-
<form>
action template _ hardware:@@HardwareType@@:"@@Hardware Name@@:start"
Select "HardwareType" "Computers|Modems|Phones|Printers|Scanners"
YesNo "Test" "=Yes" "!No"
Fieldset "OS Support" "HardwareType" "Modems"
YesNo "OSX Support" "=Yes" "!No"
YesNo "Linux Support" "=Yes" "!No"
Fieldset
Submit "Create a New record"
</form>
[/color]
With template:-
====== @@Hardware Name@@ ======
---- dataentry @@HardwareType@@----
Test : @@Test@@
OSX Support : @@OSX Support@@
----
Test = @@Test@@
OSX Support = @@OSX Support@@
[/color]
Will result in (if
Modems is selected as
HardwareType):-
====== Roadster ======
---- dataentry Modems----
Test : Yes
OSX Support = @@OSX Support@@
----
Test = Yes
OSX Support = @@OSX Support@@
[/color]