Support Article
Action on Enter Key not executed
SA-48563
Summary
The action on a field for the Enter key (or any other key) does not execute.
Error Messages
Not Applicable
Steps to Reproduce
- Create a screen with a field.
- Configure the action for the Enter key with a Refresh and an Activity Call.
- Run the action. Enter values in the field and press Enter to launch the Tracer.
Root Cause
The UserWorkForm included the following script:
<pega:when name="CPMThemeUIEnabled">
<pega:include type="Rule-HTML-Section" name="CPMPayload" />
</pega:when>
The jsonscript.js in the above code snippet caused a JSON parse to fail the action. This resulted in an empty executor array. Though the jsonscript.js file was present in the Pega 7 platform, it is no longer used in base Pega.
Resolution
As a local-change, remove the below code from the UserWorkForm: <pega:when name="CPMThemeUIEnabled">
<pega:include type="Rule-HTML-Section" name="CPMPayload" />
</pega:when>
Published April 29, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.