I have a FormPage I am working on that uses CompoundElement to structure the output. In most cases, I want the user to be able to enter both fields, but occasionally I want to have the field hidden while providing the input automatically.
In a normal form, hiding the field but providing input is easy:
FormPage[{"First" -> "String",
"Last" -> <|"Interpreter" -> "String", "Input" -> "Jones",
"Hidden" -> True|>}, # &]
In the example above, I can enter any First Name and the Last name will return as "Jones".
However, if I use CompoundElement to try and reach a similar result, the field is no longer hidden:
FormPage[{"Name:" ->
CompoundElement[<|"First" -> "String",
"Last" -> <|"Interpreter" -> "String", "Input" -> "Jones",
"Hidden" -> True|>|>]}, # &]
The actual form I am working on is much more complex, hence the need for CompoundElement but the above code isolates the problem.
I have scoured the documentation for CompoundElement and while it is included as an option in the FormPage write ups, the focus is more on structuring data in the supporting documents. Perhaps there is an option I can use in defining the form appearance?
UPDATE: This quirk has been corrected in v12.0 and later.
