Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christoffer Frede 16 posts 126 karma points
    Jan 04, 2018 @ 08:58
    Christoffer Frede
    0

    submit form with different backend domain

    hi

    i have a problem with umbraco forms on our current website structure. we have 2 domains for our website. One for umbraco as cms cms.shopdomain.com and one for our webshop which is shopdomain.com. On shopdomain.com the content is being pulled from cms.shopdomain.com.

    if i create an umbraco page with a macro rendering a form named "test form" in our cms.shopdomain.com the url will be something like cms.shopdomain.com/test-form.

    When i go to the url cms.shopdomain.com/test-form the form works as it should, but the problem arises when we get the content in our webshop shopdomain.com. on the webshop the content is being mapped to cms.shopdomain.com/test-form and the url shopdomain.com/test-form is created.

    here is a rough image showing how it is rendered: enter image description here

    now on the shopdomain.com/test-form when i submit the form, umbraco forms tries to add something to the url, which it thinks is cmsshopdomain.com/test-form and adds the cms url after the shop url like so: shopdomain.com/cmsshopdomain/test-form which is a wrong url and displays an error

    If anyone with a similar setup and know how this problem can be solved it would be much apreciated.

    I have tried making a custom workflow on the form the redirects to shopdomain.com/test-for and this still creates the error because the url change error happens before the workflow i guess. i have also created a workaround with a form integration which renders our forms in an iframe, which actually works, but causes problems for our javascripts as they throw error's because they come from a different domain in a iframe

    it's a bit of long one, hope anyone has endured the wall of text and have some tips, that could help solve the problem. also if further info is needed, let me know. umbraco version is 7.7.6 and forms is 6.0.2 Best regards Christoffer

Please Sign in or register to post replies

Write your reply to:

Draft