Modal form problem

Permalink Browser Info Environment
Hi, I added a button that opens a form in a modal from stack. However, after submitting the form, the page should redirect to 'thank you' page. Instead it gives a 404. Also the form entry is not submitted.

The form had been tested on a 'regular page' and works.

Could you please help me fix this?


Type: Pre-Sale
Status: Resolved
View Replies:
ramonleenders replied on at Permalink Reply
Hi Luca,

Forms do not work in modals unfortunately. Normally not a great idea either, since the form would always submit, even if you didn't enter required fields and then your modal is still closed and you'd have to click again.

I'd suggest doing something with JavaScript instead, but that would require some coding. Like "if submit, do Ajax call to URL [x], get errors back" etc. etc. The default form just always submits and doesn't handle Ajax requests.

Hope that answers your question(s)?

Kind regards,


concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Bootstrap Blocks (0.9.7), ExchangeCore reCAPTCHA (1.1.1), Login Page Background (0.9), Pixel Theme (2.0.1), Random Image (1.0), Responsive Embed (1.0.1), Safe HTML (7.0), Simple Gallery (1.0.7), Spacer (0.9.4), Styled Maps (1.2.3), SVG Social Media Icons (0.9.9), Wrap anything (0.9.2)

# concrete5 Overrides
blocks/OLDform/controller.php, blocks/OLDform/mini_survey.php, blocks/OLDform/view.php, blocks/OLDform, mail/block_form_submission.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software

# Server API

# PHP Version

# PHP Extensions
bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, libxml, litespeed, mbstring, mcrypt, mysqli, mysqlnd, OAuth, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, uploadprogress, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 96M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.