I need help with a workflow or where this is going wrong. In a previous post I made about how to even get the form submitted. That is now all fixed. I can now submit my form and get the email.
Now the last two things. Screen shots below to help with workflow. I have a server connect form with very basic input email, name, and comments area. That form is a server connect form. The action calls the API. The API is set to execute a redirect and send the mail on a dynamic event of success. The form should clear, the page should redirect to a thank you.
Thoughts on what I am missing here. I know it has to be an over site.
BTW the form does send me an email correctly. Just does not clear the fields and redirect. In debug I see the 302 status and then I see the 200 status.
Your server side workflow is wrongly set up. You should not use the redirect step in the server action, please remove it from there. In your send mail server action you only need the send mail step - nothing else.
The redirect should happen on the page, where your form is.
In App Structure add the Browser component, then on form success dynamic event, call the Browser > Go To action.
Not sure what do you mean here? Why would you see a 302, when the server action runs successfully? A success status is 200 and that is what is expected.
As for the redirect on form submit, please check browser console for error when submitting the form.
When it was set to the server action redirect and I was watching in debug mode within the browser I would see the 302 post. Now that I took that out I don’t see that. Did not know if there is even any value with that. Just an observation on my part is all.
I checked the debug and this is all I get right now.
Here is dump of the console. Several errors:
Error in parsing value for ‘-webkit-text-size-adjust’. Declaration dropped. bootstrap.min.css:6:1713
14:47:18.092 Unknown pseudo-class or pseudo-element ‘-moz-focus-outer’. Ruleset ignored due to bad selector. bootstrap.min.css:6:30789
14:47:18.092 Ruleset ignored due to bad selector. bootstrap.min.css:6:31230
14:47:18.104
GET https://fonts.googleapis.com/css?family=Tahoma:400
Could you just post a screenshot of the console, just after you submit your form? Most probably there are required js files missing from your server/target, as the browser component is not triggering the redirect.
Okay I just got it to redirect. Now I am in the final parts of removing all errors if I can. Below is the list from the console after submit and redirect. The fonts one is present in every page. Thoughts on where to look for these? I have uploaded everything BTW to the site.