Has anyone managed to get an Umbraco Forms workflow to post to Click Dimensions successfully? Just wondering if I'm wasting my time trying to replace a working hand-coded form with an Umbraco Form.
I can see the POST from the browser back to the web server has GUIDs as field names. I'm guessing it's the same from the web server to the Click D endpoint. If so, is it possible to intervene to set the field names/ID's as Click D requires them?
I'll take a look at that. Could be a way of working out what's currently sent and seeing if the label values are still there to swap out with the GUIDs. If it has to be totally hand-coded then there's no point swapping out the current form for an Umbraco one.
That does allow you to post to a custom URL and map the form field values you want to send across, including custom field names (so it won't use the Umbraco Forms GUIDs).
Yes, I'm using that workflow at the moment but not using the mapping section as it's not at all clear how to use it. I've not been able to find any documentation on it other than : "Send form to URL
Sends the form to a url, either as a HTTP POST or GET". The fields and labels are ambiguous: "Alias", "Form Value" and "Static Value" so left them alone.
It gave me the impression it would overwrite the user-entered value with a pre-determined "Static" value which isn't what I want to do. Do you know what it actually does?
Alias: the name of the field that gets sent across (so this should match whatever ClickDimensions is expecting).
Form Value: select the form field whose value you want to set in that form field that gets sent across.
Static Value: sometimes you want to include a static value that is the same for all requests. In that case you can set that static value in here and you want to keep the Form Value empty in that case (since it doesn't need to be mapped to a form field).
So when you have the Form Value set, you would just leave the Static Value empty.
Form Post to an EndPoint
Has anyone managed to get an Umbraco Forms workflow to post to Click Dimensions successfully? Just wondering if I'm wasting my time trying to replace a working hand-coded form with an Umbraco Form.
I can see the POST from the browser back to the web server has GUIDs as field names. I'm guessing it's the same from the web server to the Click D endpoint. If so, is it possible to intervene to set the field names/ID's as Click D requires them?
Thanks,
Craig
Craig,
Create your own wokflow and do what you need todo there https://our.umbraco.com/Documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Workflowtype
Thanks Ismail,
I'll take a look at that. Could be a way of working out what's currently sent and seeing if the label values are still there to swap out with the GUIDs. If it has to be totally hand-coded then there's no point swapping out the current form for an Umbraco one.
Thanks for the pointer :)
Hi Craig,
Have you tried using the Send Form to URL workflow that comes with Umbraco Forms?
That does allow you to post to a custom URL and map the form field values you want to send across, including custom field names (so it won't use the Umbraco Forms GUIDs).
Hi Tom,
Yes, I'm using that workflow at the moment but not using the mapping section as it's not at all clear how to use it. I've not been able to find any documentation on it other than : "Send form to URL Sends the form to a url, either as a HTTP POST or GET". The fields and labels are ambiguous: "Alias", "Form Value" and "Static Value" so left them alone. It gave me the impression it would overwrite the user-entered value with a pre-determined "Static" value which isn't what I want to do. Do you know what it actually does?
Yes, it's a bit confusing.
The way it works is:
So when you have the Form Value set, you would just leave the Static Value empty.
Thanks Tom,
I'm currently setting that up now (a lot of fields). I'll report back when I get it going.
Thanks again.
Setting all the values up took a while but worked beautifully. Just have to remember to "enable" the workflow when you're done ;)
I'll have a look at updating the docs around it so it's as clear as Tom's explanation. (PR sent)
Thanks
Craig
Hi Craig!
Do you mind sharing your code? im having similar problems.. cant seem to post to an endpoint
is working on a reply...