Question
UHG
UHG
IN
UHG
Posted: Jun 8, 2019
Last activity: Jun 10, 2019
Last activity: 10 Jun 2019 1:03 EDT
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>
<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