Skip to content

Instantly share code, notes, and snippets.

@jadwigo
Last active December 8, 2015 16:16
Show Gist options
  • Save jadwigo/d987566ebae54152de71 to your computer and use it in GitHub Desktop.
Save jadwigo/d987566ebae54152de71 to your computer and use it in GitHub Desktop.
boltforms example fields
contact:
notification:
enabled: true
debug: false
subject: Your message was submitted
from_name: My Site
from_email: noreply@example.com
to_name: My Site # Must be valid text
to_email: noreply@example.com # Must be valid email address
attach_files: false
feedback:
success: Message submission sucessful
error: There are errors in the form, please fix before trying to resubmit
fields:
achternaam:
type: text
options:
required: true
label: Je achternaam
attr:
placeholder: Je achternaam...
class: myclass-name
prefix: "<fieldset id='fieldset_achternaam'><legend>Achternaam</legend>"
postfix: "</fieldset>"
constraints: [ NotBlank ]
log_timestamp:
type: hidden
options:
label: false
event:
name: timestamp
params:
format: '%F %T'
log_useragent:
type: hidden
options:
label: false
event:
name: server_value
params:
key: HTTP_USER_AGENT
log_ip:
type: hidden
options:
label: false
event:
name: server_value
params:
key: REMOTE_ADDR
submit:
type: submit
options:
label: Inschrijven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment