-
Notifications
You must be signed in to change notification settings - Fork 214
Open
Description
In reference to #597 and #335, how difficult would it be to teach Formageddon to handle phone formatting like this?
- name: field_62cac646-c6c0-4b48-8637-86b77d2c9700
selector: "#field_62cac646-c6c0-4b48-8637-86b77d2c9700"
value: "$PHONE"
format: "(012) 345-6789"
required: true
That format value would give the 0th through 9th digits of $PHONE in whatever sequence plus whatever other characters necessary. If omitted, it would default to 012-345-6789. This way $PHONE_PARENTHESES and $PHONE_UNDASHED, etc. aren't necessary, and the YAMLs can also accommodate forms that divide the phone number over multiple fields. (I don't know of any Congressional contact forms doing this yet, but at least one gubernatorial form does.)
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels