Question

1
Replies
12
Views
ShivaRajuK1997 Member since 2015 7 posts
S&P Global
Posted: 1 year ago
Last activity: 1 year 3 months ago
Closed

Key Enter is not working for Search functionality in Custom Control in Pega7.4

Hi,
We are upgrading from Pega 7.1.6 to 7.4. There is one custom control, it might written in pega 5, and supported in 7.1.6. But now it is not supporting.
We have a search bar and beside that one button, (these two things are handled in a custom control). Onclick or Keyboard press search activity should call.
<script language="javascript">
{literal}
function openPolicyItembyKeyPress(event)
{
if(event.keyCode==13)
{
SearchItem();
}
else
return;
<onclick functionality handled here>
<table>
<tr>
<td><input type="text" name="" value="" id="policynum" maxlength="10" onkeypress="openPolicyItembyKeyPress(event)"></td>
<td><input type="button" value="Find Policy Item" onclick="openPolicyItem()" ></td>
</tr>
</table>
Onclick is working good, but on keyboard click is not working.
Any help is needful.
Regards,
Shiva Karrolla
Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn