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

Need to focus on the last item in repeating grid



You upgraded your application from PRPC 5.4 to Pega 7.1.2. The application has questions defined in decision trees and populated to screen one by one, based on answers to earlier questions.

In PRPC 5.4, focus was on the last question automatically now focus is moved to the first element on the screen.

Error Messages

No error message. 

Steps to Reproduce

  1. Build a Flow Action with a repeating grid
  2. Write before-action activity to load the first question
  3. Write after-action activity to add questions based on the answers to previous question by traversing through a decision tree
  4. Use Property-Seek-Value to get the next question

Root Cause

The root cause of this problem is a defect in customer application code/rules.


This issue is resolved through the following local change placed in their custom control:


function setFocusToLastQuestion() { 
document.getElementById("<pega:reference name='$this-name'/>").focus(); 



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?

Want to help us improve this content?

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
Contact us