255 views

Description

Dirty form dialog box does not appear using current.setAbortAction(true) in business rule, even though glide.ui.dirty_form_support property is set to true.

Steps to Reproduce 

  1. Create a before business rule on the incident table using current.setAbortAction(true) in the script field.
  2. On the business rule:
    • select the Update action
    • set the order to 100
  3. Navigate to the Incident form
  4. Add text to the Comments field.
  5. Add text to the Short Description field.
  6. Click Save.
    On submit an Invalid update error appears. Also, note that the default css property green color for the change fields is no longer there.
  7. Click Reload Form.
    The instance does not display the dirty form dialog box to alert user before discarding the values. The text values previously entered in comments and short description fields have disappeared on load.

After step 6, verify the form value using g_form.getValue('short_description') to display the modified value. The modified value is saved to the UI form. On load, the instance does not prompt the user to save un-saved changes.

Workaround

There is no known workaround for this issue. If you are able to upgrade, review the Fixed In field below to determine the versions that have a permanent fix. You can also subscribe to this known error article (click Subscribe button at the top of the article) to receive notifications when more information is available about this issue.


Related Problem: PRB584991

Seen In

Berlin Patch 8
Geneva Patch 4

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-05-23 09:50:17
Published:2016-05-23