Comments (5)
On that page, if you (temporarily) change:
{{ boltforms('foo') }}
To:
{#{ boltforms('foo') }#}
Does the error still occur? Also, what is the form config, and are you using a custom Twig template for the form itself?
I am guessing this might just be a typo somewhere, but we need to narrow it down first.
from boltforms.
The error did not occur with {#{ boltforms('contact') }#}
By the way: trying to get a working files path is always confusing, in this case for the files uploads.
My config file:
# Global templates used for rendering forms and emails.
templates:
form: boltforms_form.twig
email: boltforms_email.twig
subject: boltforms_email_subject.twig
files: boltforms_file_browser.twig
# reCAPTCHa set up
recaptcha:
enabled: false
label: "Please enter the reCaptcha text to prove you're a human"
public_key: ''
private_key: ''
error_message: "The CAPTCHA wasn't entered correctly. Please try again."
theme: clean
csrf: true
uploads:
enabled: false # The global on/off switch for upload handling
base_directory: /x/x.nl/private_html/x/files/uploads_sollicitanten/ # Outside web root and writable by the web server's user
filename_handling: suffix # Can be either "prefix", "suffix", or "keep"
management_controller: true # Enable a controller to handle browsing and downloading of uploaded files
enabled: true
address: [email protected]
contact:
notification:
enabled: true
debug: false
subject: Your message was submitted
from_name: name # A field name, specified in the fields: section below
from_email: email # A field name, specified in the fields: section below
replyto_name: name # A field name, specified in the fields: section below
replyto_email: email # A field name, specified in the fields: section below
to_name: My Site # Must be valid text
to_email: [email protected] # Must be valid email address
cc_name: Info Person
cc_email: [email protected]
bcc_name: Manager Person
bcc_email: [email protected]
attach_files: true
feedback:
success: Message submission sucessful
error: There are errors in the form, please fix before trying to resubmit
# database:
# contenttype: mycontenttype # ContentType record to create
# table: bolt_secret_table # Specific database table to write to
fields:
name:
type: text
options:
required: true
label: Name
attr:
placeholder: Your name...
constraints: [ NotBlank, {Length: {'min': 3}} ]
email:
type: email
options:
required: true
label: Email address
attr:
placeholder: Your email...
constraints: [ NotBlank, Email ]
message:
type: textarea
options:
required: true
label: Your message
attr:
placeholder: Your message...
class: myclass
needreply:
type: choice
options:
required: false
label: Do you want us to contact you back?
choices: [ Yes, No ]
multiple: false
upload:
type: file
options:
required: false
label: Picture of your pet that you want us to add to our site
submit:
type: submit
from boltforms.
Got it with a copy/pasta… It is indentation…
label: Picture of your pet that you want us to add to our site
submit:
type: submit
Should be
label: Picture of your pet that you want us to add to our site
submit:
type: submit
from boltforms.
sigh Stupid.
Thanks Gawain.
from boltforms.
Looks exactly like the sort of mistake I am really good at making 😁
from boltforms.
Related Issues (20)
- Limit document file upload type HOT 2
- Fix for flash messages breaks redirects
- Feedback Messages inconsistencies with multiple forms HOT 5
- [RFC] Contenttype updating via form HOT 3
- Indentation database example near field_map is wrong when copying
- Saving to a contenttype HOT 2
- Runtime error with file upload saving to a contenttype HOT 9
- Suggestion: make boltforms contain a boltform selector field HOT 2
- Error message when file is too large in size HOT 1
- MP3 compressed to mpga
- Redirect after submission gives error on Chrome & Firefox HOT 1
- Multiple files upload HOT 1
- [Feature Request] Environment variables or bolt parameters in extension configuration file
- Individual form templates aren't used HOT 1
- error while sending a form HOT 1
- from_email not substituted from filed
- Setting ReCaptcha v3 score threshold HOT 6
- recaptcha v3 forms not submitting HOT 1
- Submit form redirect ("Notice: Undefined index: query")
- Unclear debug_address
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boltforms.