# gx\_SubmitKey('\[ENTER\]') does'nt work!!!

**URL:** <https://techcommunity.softwareag.com/t/gx-submitkey-enter-doesnt-work/79816>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [December 19, 2008, 12:32pm UTC](https://techcommunity.softwareag.com/t/gx-submitkey-enter-doesnt-work/79816 "2008-12-19T12:32:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JB11](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JB11](https://techcommunity.softwareag.com/u/JB11)\
**Post date:** [December 19, 2008, 12:32pm UTC](https://techcommunity.softwareag.com/t/gx-submitkey-enter-doesnt-work/79816/1 "2008-12-19T12:32:50Z")

</div>

Hi!

If we put this command  
[gx:input id=“localFile” type=“file” value=“”][/gx:input]"  
into AP0015.jsp(we made it with "Generat"bottom. ）,  
gx\_SubmitKey(‘[ENTER]’) does’nt work!!!  
and the same screen redisplayed again.

If we don’t put this upload command, this  
gx\_SubmitKey(‘[ENTER]’)　does work.

Please let us know how to solve this ploblem.

If we cannot solve this problem, our customer has to log out each time after uploading some file.

* * *

＜RPG pgm＞  
1.LOGIN　→　2.MAINMENU　→　3.file upload Menu  
1,2 are instant.jsp  
3.is JSP we made with ApplinX  
If we execute RPG pgm, after doing 3.file upload Menu with ENTER key we can go back to 2.MAINMENU.

＜AP0015.jsp(GENERAT)＞  
・「BACK」bottom only pattern  
[input type=“SUBMIT” NAME=“SUBMIT” VALUE=“BACK” onClick=“javascript:gx\_SubmitKey(‘[ENTER]’);”]

:arrow: after 「BACK」bottom, go back to 2.MAINMENU 😃

＜AP0015.jsp(GENERAT)＞  
・add file upload command pattern  
[gx:input id=“localFile” type=“file” value=“” size=“50”][/gx:input]  
[input type=“SUBMIT” NAME=“SUBMIT” VALUE=“BACK” onClick=“javascript:gx\_SubmitKey(‘[ENTER]’);”]

:arrow: after 「BACK」bottom, redisplay 3.file upload menu again. 😢

---

<div class="post-metadata">

**Author:** ![Asaf\_Shak](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Asaf\_Shak](https://techcommunity.softwareag.com/u/Asaf_Shak)\
**Post date:** [December 23, 2008, 4:29pm UTC](https://techcommunity.softwareag.com/t/gx-submitkey-enter-doesnt-work/79816/2 "2008-12-23T16:29:08Z")

</div>

Hi,  
Please try to remove the

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:51pm UTC](https://techcommunity.softwareag.com/t/gx-submitkey-enter-doesnt-work/79816/3 "2021-04-02T14:51:18Z")

</div>


