formlets icon indicating copy to clipboard operation
formlets copied to clipboard

Field Sequence

Open inaimathi opened this issue 14 years ago • 1 comments

Add a macro (probably called sequence) like

 field count -> [field] (assert (= length [field] count))

That should help reduce boilerplate where the user needs to enter many units of the same field.

inaimathi avatar Apr 07 '11 03:04 inaimathi

This is...

So, for starters, checkbox-set and radio-set exist. Also, textarea, select, multi-select and recaptcha aren't typically present in numbers. That leaves, maybe, text (since I doubt anyone will want a user to confirm a password 17 times). In other words, I can solve this problem by implementing text-set instead of a generic sequence shortcut for define-field.

On the other hand, it wouldn't be terribly difficult, and it wouldn't hurt in any obvious way (since it'll get unfolded at definition time, rather than at view time).

inaimathi avatar Aug 03 '11 00:08 inaimathi