Notifications

41 views

Description

When the User Preference for 'enter_submits_form' for all users is set to True on the instance, hitting the enter key on a text or search field in a form, causes the system to execute the very first UI Action on the form which is unexpected behavior.

Tested in:
Build name: London
Build date: 12-20-2018_1717
Build tag: glide-london-06-27-2018__patch4-hotfix2-12-20-2018
Instance name: empstl546

Steps to Reproduce

- Go to User Preferences and filter list by name=enter_submits_form
- Set this user preference to TRUE

Test Scenario 1:
- Create a new UI Action for any form and set its order to -100 so that it executes first
- Add a simple alert in UI Action Script for testing
- Pick any string type field on the same form and enter some text and hit the Enter key on keyboard
- Observe that the system throws the alert when you hit Enter key

Test Scenario 2:
- Open any sys_db_object record on the instance in default form view and make sure Delete All Records is only UI Action on the form, or set its Order so that it runs first
- Scroll down to Columns section on the form and under the Column label enter any text and hit enter
- Observe that the system executes the UI Action on form (see attached...since Delete All Records is only UI Action on form, that gets executed)

Expected Behavior: System just accepts the text entered into the field and process the enter keystroke
Actual Behavior: System also executes the first UI Action on the form

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix. 

To workaround this issue until a fix is available, set the 'enter_submits_form' User Preference record to False. This would be following record on any instance replacing the instance name in the url below: 

https://INSTANCE NAME.service-now.com/sys_user_preference_list.do?sysparm_query=name%3Denter_submits_form

Here is online documentation on 'enter_submits_form' User Preference.


Related Problem: PRB1324014

Seen In

There is no data to report.

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:41:01
Published:2019-01-25