Question

Assignment is to be performed when  Enter key is pressed .

How to submit the assignment on press of enter key?

Now Assignment is being submitted on click of "Submit" button but same action should be performed when press enter key as well.

I did following configuration but it's not working .

>> save as pyCaseActionAreaButton section into App ruleset.

>> Modified the action as mentioned below.

Enterkey.jpg

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

April 15, 2016 - 9:54am

Hi Brahmeswara,

This form Submit will not work as the Enter action is on the Button. It will work when you place the cursor or focus on Submit button and then hit Enter.

For form to be submitted on Enter, you will have to include a html fragment which submits the form on Enter.

Regards,

Prasad

April 17, 2016 - 3:05am
Response to Prasad_BY

Yes..we have to keep the focus on submit button to be submit the form on enter key,but any suggestion ,how to keep the focus on submit by default while  form is being loaded?

>> I have observed OOTB rule check-in form, which is behaving the same way as the rule is being checked in on enter button,despite of focus on pyMemo (comments) field .     I would like to implement the same behaviour,but I couldn't get it how the check-in rule form was implemented .

  check-In.jpg

I have gone throw below PDN article button ,but i could n't get the  id of "submit" button .

https://pdn.pega.com/support-articles/request-add-new-event-enter-control

April 19, 2016 - 8:32am
Response to BrahmeswaraRao

Any suggestion to implement this use case. 

April 15, 2016 - 12:22pm

How about configuring the Enter Key -> Finish Assignment Action on the Dynamic layout which is hosting the action area.

May 4, 2016 - 2:56am

Any suggestions are welcome regarding use case design.

Pega
May 17, 2016 - 3:16pm
Response to BrahmeswaraRao

I tried the suggestion provided by Sathish, it works. Did you try the same? Or any challenges in implementing the same.

S1.png

Based on the very suggestion you can scope this behavior to particular sections with your form fields.

Rather than enter key if using  accesskey shortcut also helps, http://vref0702:7261/prhelp/procomhelpmain.htm#rule-/rule-html-/common/commonlayoutpxbuttonsp2.htm

May 19, 2016 - 9:50am
Response to SaiDeepakA

Are you keeping the focus on button before press Enter key?

Pega
May 19, 2016 - 10:03am
Response to BrahmeswaraRao

I have configured action set for dynamic layout holding action area on 'Enter' event to do 'Finish Assignment' action.

August 5, 2016 - 3:38am

Hi,

if you created your own button ("SUBMIT") then follow the step 1

else if you are using flow action owned action then go to "pycaseactionareabutton" under UI-Kit ruleset, save as into your ruleset and do the same action mentioned below step 2

Step1 - Click on Submit button cell then click Magnifier (Cell Properties), Go to Action tab and under Action set add an event as "Enter Key" and click on Add on Action then set as finishAssignment or any action which needs to be execute when pressing Enter key.

Step2 - Add the Action task as mentioned in step 1 for all the "pySubmitLabel" fields.

Note:Step 2 reflects where ever using OOTB Submit action throughout application.

August 23, 2017 - 12:47am

You can enable submit on enter by configuring the "pyActionArea" section used in harnesses/sections. Refer the below post.

https://pdn.pega.com/community/pega-product-support/question/how-get-enter-key-click-submit-button