Skip to content

Suggestion on future syntax #1

@mofosyne

Description

@mofosyne

http://talk.commonmark.org/t/introducing-markdown-extensions-for-form-input/432/2

This is best done as a generic directive input

Generic Directive Style Brainstorming. The idea is that you could potentially print this as it is and fill it out if you really needed to.

!form: Form Header Name
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Choose an Email?:  ______________
Choose a password: ***___________

Describe why you want to register:
[                                ]
[________________________________]

Gender: [ "male" / "female" ]

Which of these features will you need?:
* [ ] simplicity
* [x] Don't know
* [ ] complete
Radio Button. Which pet do you want most?:
* (#) cat
* ( ) dog
* ( ) bird

          [>>  OK   <<] [!! RESET !!]

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
{action="MAILTO:someone@example.com" method="post" enctype="text/plain"}

Designed to fail gracefully

Choose an Email?: ______________
Choose a password: ***___________

Describe why you want to register:
[ ]
[________________________________]

Gender: [ "male" / "female" ]

Which of these features will you need?:

  • simplicity
  • Don't know
  • complete

Radio Button. Which pet do you want most?:

  • (#) cat
  • ( ) dog
  • ( ) bird

[>> OK <<] [!! RESET !!]


Other form inputs:

Drop down list: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select3

Fiat option preselected

(cars) Choose a car:
*  [  Volvo  ]
*  [  Saab   ]
*  [- Fiat  -]
*  [  Audi   ]

Field set: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_fieldset

# is first level fieldset
## Second level fieldset

e.g.

# Login Details
Choose a Username: ______________
Choose a password: ***___________

# Personal Details
Gender: [ "male" / "female" ]
Religion: ________

Datalist: http://www.w3schools.com/tags/tag_datalist.asp

What is your browser?:  ______________
* Internet Explorer
* Firefox
* Chrome
* Opera
* Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions