Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Finish Assignment activity is triggered on click of button

SA-6587

Summary



The application is upgraded from PRPC 6.2 SP1 to Pega 7.1.6. Developer has configured a custom control in a section. This custom control displays a button using HTML <button> tag and a function is called on click of it. When the button is clicked, it calls the intended function and after that 'FinishAssignment' activity is triggered which resolves the work object. The behavior was not the same in PRPC 6.2 SP1. 

Error Messages



No error messages.


Steps to Reproduce



a) Create a custom control that uses 'button' tag to create a button. Do not provide any onclick handlers for the button.
b) Use this control in a section.
c) At run time, click on this button. Even though no handler was defined, it will trigger 'FinishAssignmnet' activity to execute.


Root Cause



The default action of button tag in a form is to submit the form. This might be causing the activity to be called. Another SR is created to do the root cause analysis on difference in behavior between PRPC versions.



Resolution



Suggested the use of '<input type="button">' tag over the <button> tag. 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice