Skip to content

Support arbitrary (optional) user-enterable data fields #66

@Klakurka

Description

@Klakurka

Support arbitrary (optional) user-enterable data fields.

Example: https://donate.paybutton.org/

Show a new section before the QR code that has the new data entry form.

Using the following format, allow entering arbitrary fields:

fields='[{"name": "X", "text": "Y"}, {"name": "Z", "text": "A"}]' (maybe allow setting the "type" too for some basic validation? Eg. Text, email, checkbox, hidden.

These would appear in order from top to bottom, all optional. These values would be made available in the callback but could also be added directly into the DOM for convenience (to be discussed).

There would be a button at the bottom of the fields that has the same text as the text parameter for the button.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions