# Forms submit with two options

**URL:** <https://community.f5.com/t/forms-submit-with-two-options/51943>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, big-ip, application-delivery\
**Created:** [January 23, 2020, 11:15am UTC](https://community.f5.com/t/forms-submit-with-two-options/51943 "2020-01-23T11:15:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_Lång](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Johan\_Lång](https://community.f5.com/u/Johan_L%C3%A5ng)\
**Post date:** [January 23, 2020, 11:15am UTC](https://community.f5.com/t/forms-submit-with-two-options/51943/1 "2020-01-23T11:15:31Z")

</div>

You have a formbased logon, but it consists of two pages, the first page you have to decide to pick one of two options with a “onclick”, option 1 redirects you to “logon page 1” and option 2 redirects you to “logon page 2”, the logon pages is external.

After you’re redirected to a logon page you can use a forms client initiated sso, that works fine.

I need something to choose either option from the first page.

Can this be accomplished? iRule? Forms client initiated sso with some modification to the javascript?

Regards,

Johan

---

<div class="post-metadata">

**Author:** ![Dario\_Garrido](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Dario\_Garrido](https://community.f5.com/u/Dario_Garrido)\
**Post date:** [January 23, 2020, 6:08pm UTC](https://community.f5.com/t/forms-submit-with-two-options/51943/2 "2020-01-23T18:08:43Z")

</div>

Hello Johan.

You can achieve that using APM access policy.

1. Configure one Logon Page that uses a radio field with two options.
2. Configure a box for validating the option selected in the previous logon page
3. Configure a redirection to those logon pages (one per branch) or you could even configure those logon pages inside the APM policy.

**REF** - [About the External Logon page | BIG-IP Documentation](https://techdocs.f5.com/en-us/bigip-15-0-0/big-ip-access-policy-manager-visual-policy-editor/access-policy-item-reference/about-logon-items/about-the-external-logon-page.html)

KR,

Dario.

---

<div class="post-metadata">

**Author:** ![Johan\_Lång](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@Johan\_Lång](https://community.f5.com/u/Johan_L%C3%A5ng)\
**Post date:** [February 5, 2020, 12:09pm UTC](https://community.f5.com/t/forms-submit-with-two-options/51943/3 "2020-02-05T12:09:49Z")

</div>

Thanks, you made me go the right direction. I configured two logon pages in two different branches, depending on which branch the user choose, different irule events fires off and a irule makes some descisions to proceed to the correct logon page with an client-initiated sso form.
