• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

"GET" form method possible?

Hi Experts:

I'd like to know if this can be done, and if so what is the best approach.

I'd like to have two things happen when a web form is submitted:

1. send an email with some information captured on the form included in it
2. issue a "POST" form method to an external URL which includes some captured information from the form as well (i.e. the user would end up at the external website looking at the "POST" processed response from there.

If I could get away with a "POST" form method his would be straightforward to do with a webquerysave agent that sends an email, and a $$Return field with some code to structure the URL. It's the necessity of the GET method which I'm stuck on.

2 Solutions
As far as I knew and have tested, Domino forms on the web do submit using POST.  So I am not sure I understand exactly what you mean but here goes.  

If you need to change the form tag (to use "GET" or to change the ACTION attribute, you can put something like this at the top of the form in passthru HTML

<form action="action.url" method="GET">

There are likely to be problems with any javascript on the form which refers to the first empty form by name but that can be worked around in my experience.
kkiddieAuthor Commented:
Yes, sorry for my unclear question. It seems like what you suggest should work, but how do I simultaneously send an email which includes some of the data on the form if the form is directed to an external URL?

Hi kkiddie,
You can send the email on the webquerysave event of the form.  YOu can either write it in javascript, or use javascript to call an agent to send the email.   The redirect you can write in a $$Return field on the form

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now