# SSO Form Client-Initiated javascript issue

**URL:** <https://community.f5.com/t/sso-form-client-initiated-javascript-issue/26001>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, application-delivery\
**Created:** [March 14, 2017, 1:05am UTC](https://community.f5.com/t/sso-form-client-initiated-javascript-issue/26001 "2017-03-14T01:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carl\_waddington](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@carl\_waddington](https://community.f5.com/u/carl_waddington)\
**Post date:** [March 14, 2017, 1:05am UTC](https://community.f5.com/t/sso-form-client-initiated-javascript-issue/26001/1 "2017-03-14T01:05:00Z")

</div>

Trying to create an SSO form based configuration to submit data (username and password) using javascript function which is triggered by an onlick event on a button.

There is no form on the page, javascript gets the below parameters when the button is clicked.

```tcl
Sign In

```

I have configured the form parameters under parameter settings and form detection, this seems to be working as i get this in the logs:

```tcl
SSOv2 Request match, config /Common/test-sso-form form testform
SSOv2 Request "GET /clients.html", config /Common/test-sso-form

```

As there is no form or submit button i am assuming the data is not being sent so i looked at injecting javascript to call the login function but sso does not log me in.

Could you advise what the correct method would be to call login\_function?

I have tried this the below javascript injection (custom) i found from another dev article but does not sign me in.

I have tried various combinations with the above to trigger the function like not setting the username and password values in javascript because it is done with the form parameters already?

Any help to put me on the right track would be great.
