How to call user defined activity from Web-Login Html rule

Hi !!

I tried to customize the login section.

For this I saved Web-Login HTML rule, @baseclass to my Ruleset and I did modifications.

In my requirement I need to call user defined Activity on a button click.

I followed different methods which were posted in support center as well .but no luck.

can you help me!

NOTE:I am currently using pega8.6 version.

Thanks!

@Lekha

The login activity indicated in the web-login is Code-Security.Login. Pls try replacing this with your activity.

@Lekha

To call an activity before login, the activity should be part of Unauthencated access group. And it should have “Allow direct invocation from the client” setting checked and “Require authentication to run” setting unchecked.

Similar post that might help: https://collaborate.pega.com/question/how-call-activity-or-flow-action-login-page-prpc

@Lekha Similar to login button, you can write a jsp tag to call an activity pyName=your activity name and on click of your button. Get attribute of your button and onclick funtion call your activity