Hidden field - changes improvements
TeRq wrote on 09 Jun 2010 11:02
This idea is originally proposed by leiger on http://www.wikidot.com/forum/t-217450/doc:data-form
Hidden form example/implementation.
[[form]]
fields:
version:
label: Version
type: hidden
update: on_create / on_update / auto
value: 1.00(1,2,3,...)
[[/form]]
Table shows hidden field value changes using different update properties:
action | on_create | on_update | auto | _template* |
create | 1.00 | 1.00 | 1.00 | 1.00 |
update 1 | 1.00 | 1.01 | 1.01 | 1.01 |
no action | 1.00 | 1.01 | 1.02 | 1.02 |
update 2 | 1.00 | 1.03 | 1.03 | 1.03 |
* data form definition value while action was taken
Comments: 1
page revision: 3, last edited: 09 Jun 2010 11:24
Good table.
Gabrys suggested an alternative improvement to the 'hidden' field, which was to use default instead. That would essentially work the same way as the on_create option in the table shown above.
Either way… I like the direction this discussion is headed in…
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)