Verification is broken with hard coded POST URL

Permalink Browser Info Environment
Found another problem with hardcoding the POST URL – the form verification doesn't work. It also sends a form even if nothing has been filled out. I am hoping your lack of response to previous support questions is only temporary, we really need you back to address some of these issues. You have the best form addon for C5, together we are all making it even better.

Type: Ticket
Status: Archived
TeKnoZiz
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

I think this is the same issue:
Access to XMLHttpRequest at 'https://secureform.luxsci.com/perl/post/16372-13608-thyi' from origin 'https://marshbrookrehab.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
What does this error mean and how can I fix it?
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
I checked the host and they had me insert

<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</ifModule>


In the .htaccess file. I tried the form again and got the same results. Hmm.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
New development. I set up the second form, which has *no* parts. I modified the template as before and get the same issue, it doesn't complete the submission on the webpage, it just says Waiting... but a response does get emailed correctly to the recipient. So it doesn't appear to be a part issue.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
So everything from the form processing site seems to be working just fine. There only seems to be an issue when the POST URL is changed. Can you double-check my template to make sure I added it correctly? It looks right but a second pair of eyes wouldn't hurt and if it is correct, could you check and see how hard coding the URL would make the submit function not work correctly? Thanks!
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

You can't change the action the form that way.
The action is used to validate the formdata before sending it.

In your case I think you should use an event.
So after the form is succesfully submitted, use the event to post the data to the external URL.

I think that would be the best approach.

Best,

Corretje
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Ah! Ok... that's why it wasn't working... So. How do I create an event? I am not familiar with this process but I am a quick learner.
DeWebmakers replied on at Permalink Reply
DeWebmakers
Check the controller.php in the Formidable package.
There around line 360 is the events-method.
There is also som example code there.

Let me know it it works! :)

Best,

Corretje
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Ok, this looks a little daunting... Ideally, I would like to be able to say "If Form A then post results to this address, If Form B then post results to this address." I suppose I couldn't encourage you to lend me some assistance? Should be much easier than what you did for MailChimp. Please? ;-)
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

I would like to help out on your code.
But I've so much work lying around here. Could we try to somewhere around June?
I've no time to help out now...

Best,

Corretje
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Sure, I will PM you in June. I'll see if I can get my client to wait a bit...
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.5
Version Installed - 8.4.5
Database Version - 20180717000000

# concrete5 Packages
Background Image and Overlay (0.9.9), ExchangeCore reCAPTCHA (1.1.1), Formidable (Full Version) (2.0.4), Formify (3.2.3), List files from set (1.0.13), Overlay Gallery (2.0), Page Redirect (2.0), Page Selector Attribute (2.0), Quick Tabs (1.0), Spacer (0.9.4), Supermint Theme (3.4.1.3), SVG Image (0.9.7), SVG Social Media Icons (0.9.9), Vivid Simple Accordion (1.0.1), Webli Content PopUp (2.0), Whale OWL Carousel (2.5.8)

# concrete5 Overrides
blocks/feature/view.php, blocks/feature/templates/supermint_block_button.php, blocks/feature/templates/supermint_tiny-box.php, blocks/feature/templates/supermint_address.php, blocks/feature/templates/supermint_classic.php, blocks/feature/templates/supermint_tiny.php, blocks/feature/templates/supermint_box.php, blocks/feature/templates/supermint_table.php, blocks/feature/templates/supermint_callout.php, blocks/feature/templates/supermint_standard_fixed_height.php, blocks/feature/templates, blocks/feature, blocks/whale_owl_carousel/view.php, blocks/whale_owl_carousel, blocks/formify_form/images/processing.gif, blocks/formify_form/images/select.png, blocks/formify_form/images, blocks/formify_form/view.php, blocks/formify_form/view.css, blocks/formify_form/templates/rehab3_form/view.php, blocks/formify_form/templates/rehab3_form/view.css, blocks/formify_form/templates/rehab3_form/view.js, blocks/formify_form/templates/rehab3_form, blocks/formify_form/templates, blocks/formify_form/view.js, blocks/formify_form, blocks/formidable/templates/marshbrook/view.php, blocks/formidable/templates/marshbrook/view.css, blocks/formidable/templates/marshbrook, blocks/formidable/templates, blocks/formidable, blocks/webli_content_popup/templates/team-bios/view.php, blocks/webli_content_popup/templates/team-bios/view.css, blocks/webli_content_popup/templates/team-bios, blocks/webli_content_popup/templates, blocks/webli_content_popup, themes/supermint/elements/multiple_area.php, themes/supermint/elements/bottom.php, themes/supermint/elements/backstretch.php, themes/supermint/elements/top_bar.php, themes/supermint/elements/footer.php, themes/supermint/elements/intro.php, themes/supermint/elements/head.php, themes/supermint/elements/other_page-types/view.php, themes/supermint/elements/other_page-types, themes/supermint/elements/header.php, themes/supermint/elements/navigation.php, themes/supermint/elements/ribbon.php, themes/supermint/elements, themes/supermint/css/main.less, themes/supermint/css/thumbnail.png, themes/supermint/css/styles.xml, themes/supermint/css/supermint.css, themes/supermint/css/addons/YTPlayer.css, themes/supermint/css/addons/animate.css, themes/supermint/css/addons/jquery.magnific-popup.css, themes/supermint/css/addons/mega-menu.css, themes/supermint/css/addons/slick.css, themes/supermint/css/addons/jquery.transit.css, themes/supermint/css/addons/fonts/slick.svg, themes/supermint/css/addons/fonts/slick.woff, themes/supermint/css/addons/fonts/slick.eot, themes/supermint/css/addons/fonts/slick.ttf, themes/supermint/css/addons/fonts, themes/supermint/css/addons/button/button-flat.less, themes/supermint/css/addons/button/for.less, themes/supermint/css/addons/button/button-plain.less, themes/supermint/css/addons/button/button-push.less, themes/supermint/css/addons/button/button-util.less, themes/supermint/css/addons/button, themes/supermint/css/addons/bootstrap.custom.min.css, themes/supermint/css/addons/slick-theme.css, themes/supermint/css/addons/hint.less, themes/supermint/css/addons/jquery.mmenu.all.css, themes/supermint/css/addons, themes/supermint/css/presets/portfolied.less, themes/supermint/css/presets/business.less, themes/supermint/css/presets/defaults.less, themes/supermint/css/presets/fooder.less, themes/supermint/css/presets, themes/supermint/css/build/alerts.less, themes/supermint/css/build/hr.less, themes/supermint/css/build/page.less, themes/supermint/css/build/hacks.less, themes/supermint/css/build/accordion.less, themes/supermint/css/build/blocks/page-list.less, themes/supermint/css/build/blocks/tags.less, themes/supermint/css/build/blocks/image-slider.less, themes/supermint/css/build/blocks, themes/supermint/css/build/typography.less, themes/supermint/css/build/ribbon.less, themes/supermint/css/build/mixins/vendor-prefixes.less, themes/supermint/css/build/mixins/triangle.less, themes/supermint/css/build/mixins/misc.less, themes/supermint/css/build/mixins, themes/supermint/css/build/mixins.less, themes/supermint/css/build/blocks.less, themes/supermint/css/build/addons.less, themes/supermint/css/build/images.less, themes/supermint/css/build/addons/mmenu-theme.less, themes/supermint/css/build/addons/slick-theme.less, themes/supermint/css/build/addons, themes/supermint/css/build/area-classes.less, themes/supermint/css/build/navigation-full-screen.less, themes/supermint/css/build/misc.less, themes/supermint/css/build/stack.less, themes/supermint/css/build/navigations.less, themes/supermint/css/build/responsive.less, themes/supermint/css/build/tabs.less, themes/supermint/css/build/scaffolding.less, themes/supermint/css/build, themes/supermint/css, themes/supermint

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.0.33

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
memory_limit - 768M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 128M
ldap.max_links - Unlimited
memcached.sess_lock_max_wait - not set
memcached.sess_lock_wait_max - 2000
memcached.sess_server_failure_limit - 0
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

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.