# Submit form from first response request

**URL:** <https://community.postman.com/t/submit-form-from-first-response-request/26938>\
**Category:** Help Hub\
**Tags:** cheerio\
**Created:** [August 20, 2021, 2:29am UTC](https://community.postman.com/t/submit-form-from-first-response-request/26938 "2021-08-20T02:29:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauricio.gonzalez](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mauricio.gonzalez](https://community.postman.com/u/mauricio.gonzalez)\
**Post date:** [August 20, 2021, 2:29am UTC](https://community.postman.com/t/submit-form-from-first-response-request/26938/1 "2021-08-20T02:29:14Z")

</div>

_My question_: Even though I might know the answer to this, but is there a way to submit a form inside a HTML response from a request?

_Details_:  
What I’m trying to do is make a first request:

```auto
GET https://firstrequest/

```

which returns a text/HTML, with a form in it, and a `<script src>` which inserts a dynamic token into one of the form’s input on submit. Once the form is submitted, it returns a new HTML, from where I need to get a code\_token to set it in a env var.

_I’ve already tried_: I used cheerio to parse the HTML, and set some of the form’s input values, but then I don’t know how to submit the form using Postman’s Tests, since cheerio doesn’t support `.on()`, `.click()`, `.submit()` functions.

I’m pretty sure I can’t be done with Postman, but I’m just asking ¯\_(ツ)\_/¯
