Forums

Http get request to other domain

mdma 13 Aug, 2015
.
Hello!
i would need to clear if this would be possible before i start with chronoforms:
formA:
datefield1
datefield2

1)submitA ...genereates a http get request (in new browser window) to another domain with variables (hidden+date converted vals) maybe with a php file (header location) or javascript(without cors, jsonp more like a redirect)
2)submitB...redirects to formB with
datefield1+2 prefilled
other fields
other fields

any hints what would be working, links to recherche, i would be totally thankful.
greetings
GreyHead 13 Aug, 2015
Answer
Hi mdma,

Yes this is possible. Hard to give you specific advice though.

The Submit B option looks like a Multi-Page form might do what you need.

The Submit A Option you can do either either with Custom JavaScript directly from Form A, or you can submit normally, use an Event Switcher action to check with button was used, and use a ReDirect action if it was button A.

Bob
mdma 13 Aug, 2015
thank you alot !
for Submit B i have to say FormA(sidebar) is in another hemplate position than fullformB(article)

so maybe i have to make post request to other form?
GreyHead 13 Aug, 2015
1 Likes
Hi mdma,

You can use the Data to Session and Session to Data actions to pass data between different forms. Be sure to add a Session Key though - just a text string that you add to both actions so that the right data is retrieved.

Bob
This topic is locked and no more replies can be posted.