The ability to render forms in "readonly" mode would be very useful. Then simply by clicking a button, the form could be changed to be editable. This would need careful planning to work out how it would behave for jsforms.
Given the new AHAH way of doing jsforms, this actually becomes quite trivial. Each element just needs to export how it should be drawn when the form is readonly - which in many cases may simply be returning $element['defaultvalue'].
There are some complications though:
* What mode are forms in by default?
* How do you switch modes?
* What mode is the form in after editing?
* What happens to fieldsets?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1083971
Originator: YES
Given the new AHAH way of doing jsforms, this actually becomes quite trivial. Each element just needs to export how it should be drawn when the form is readonly - which in many cases may simply be returning $element['defaultvalue'].
There are some complications though:
* What mode are forms in by default?
* How do you switch modes?
* What mode is the form in after editing?
* What happens to fieldsets?