# Getting form fields

**URL:** <https://techcommunity.softwareag.com/t/getting-form-fields/59514>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [November 21, 2005, 8:41pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514 "2005-11-21T20:41:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raffaele\_Apisa](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Raffaele\_Apisa](https://techcommunity.softwareag.com/u/Raffaele_Apisa)\
**Post date:** [November 21, 2005, 8:41pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514/1 "2005-11-21T20:41:34Z")

</div>

Hi everybody,

I’m not able to work out this problem:

I have a HTML form like

```
My name
<input type="text" name="myname"/> <br/><br/>
My address <input type="text" name="myaddress"/>

<br><br>
<input type="submit" value="Invia"/>
</form>

```

In the sequence esercizioPayload.xml I would like to get the values of  
“myname” and “myaddress” fields.  
Note that I use enctype=“application/x-www-form-urlencoded”;

How can I do to get them? What kind of Mediator components do I have to use?

Thanks

Raffaele Apisa

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [November 22, 2005, 4:28pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514/2 "2005-11-22T16:28:30Z")

</div>

Hi Raffaele,

The values you are setting in your form are available in the XML Mediator in the form of message properties. You can access message properties using Xpath statements in nearly every component or sequence processing step.

XPath expressions to evaluate the values of the properties you set in your form would look like:

{‘$myname’} and {‘$myaddress’}.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![Mike\_Bernat](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mike\_Bernat](https://techcommunity.softwareag.com/u/Mike_Bernat)\
**Post date:** [November 22, 2005, 9:29pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514/3 "2005-11-22T21:29:32Z")

</div>

Hi Raffaele,

You also need to specify method=“get” instead of “post” to get the form fields added as query parameters to the incoming URL. The query parameters will become Mediator properties.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Raffaele\_Apisa](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@Raffaele\_Apisa](https://techcommunity.softwareag.com/u/Raffaele_Apisa)\
**Post date:** [November 22, 2005, 11:38pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514/4 "2005-11-22T23:38:59Z")

</div>

Hi Matthew, Hi Mike,

now I can get the parameters as described by Matthew.

Thanks so much

Raffaele A.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/getting-form-fields/59514/5 "2021-04-02T14:39:53Z")

</div>


