AMP for Email Form Component - Is it possible to redirect user to web page? - html-email

When using the AMP for Email form component, is it possible to redirect the user to a web page when one clicks the form submit button within the email?

No, it's not allowed. There's a section on this for the AMP for Website format: https://amp.dev/documentation/components/amp-form/#redirecting-after-a-submission, but notice that the section is not there for the email format: https://amp.dev/documentation/components/amp-form/?format=email.
See also https://github.com/ampproject/wg-amp4email/issues/17#issuecomment-1192025183.

Related

Elementor form not redirects after submit when using params in url #?ref=abandmail5

I have an elementor page containing a form with submit button and redirect after submitting. I have an issue with page url with params that I get from mail responder service. For example I get a link https://www.mysite#?ref123&name=abc. The issue that form submit and redirect does not work on a page with such url. Popus also not working with such urls. I assume that the problem is with a fragment identifier. Is it possible that it interferes with Ajax methods and what solution for this?

Redirecting form to current browser url (ATG)

I have a form which is included on all the pages of our website. The dsp:form action attribute is same as the current page url. This works fine for most of our pages but fails when a user submits the form on a page where browser shows a seo friendly url.
For example when a user submits the form on one of our product pages www.mysite.com/products/prdName the page refreshes and redirects user to www.mysite.com/prodSpec/index.jsp
How can i keep user on the same browser url on form sumission?
TIA
Have you considered using therein property value /OriginatingRequest.requestURI as your successUrl value?
OriginatingRequest is a request-scoped component that represents the current HTTP request (specifically, the instance of DynamoHTTPRequest)

How to place a link to a view in the email template of odoo

In my custom room booking application, when user book a room a mail will send to the admin. In the mail template, there is an approve button. Once the admin clicks the approve button, it should redirect to the approval form view. How can I do that by placing a link in the email template?
The url you have to compose is of the following form:
http://odoo.server.com/web?db=#id=&view_type=form&model=
You can put in your template a text ${ctx['url']} and then render send template with template.with_context(url=url).send_mail(self.id). ${ctx['url']} will be replaced with url you passed along with context.

Wordpress cp-appointment-calendar redirection to paypal issues

I'm using cp-appointment-calendar for booking system on http://studioglamour.co.uk, but the problem is that when you enter date/time and information, you need to be redirected to paypal. I know that PayPal doesn't let ifames.
The question would be: how to do that when I press continue it would close the fancybox iframe, and redirect to PayPal in the main page?
Use target="_top" in the appropriate form / link.
When used in a form, the form will submit into the whole window.
When used in a link, the link will open in the whole window.

Can you make a mailchimp form validate on onsite

I've made a mailchimp newsletter form with two fields; Name and Email. When i click it obviously loads the page where the designed form is to on my mailchimp account. How would i go about make it all work on my site and just post the information over to mailchimp.. my goal is not to have the user leaving the splash page.
I did try just including the java include code and that seems to do everthing on the page as i want, but then i can't style the form because it's pulling in all it's styles from Wufoo.
Regards
M