When the Activity Formatter is on the form, g_form functions are not working for journal fields as expected in Geneva UI16.

Example: g_form.showFieldMsg()

Steps to Reproduce

  1. Log in to an instance with the Geneva release installed.
  2. Ensure that UI16 is visible.
  3. Import the attached UI Action.
    This creates a Cancel button on incident.
  4. Open any open Incident and insure the base system Activity Formatter is on the form [Activities (filtered)].
  5. Click Cancel.
    Note that the Additional Comments field becomes mandatory, but it should also set focus to this field and display a field message that comments are mandatory.

    UI Action function:

    function cancel(){
        if(g_form.getValue('comments') == ''){
            g_form.setMandatory('comments', true);
            g_form.showFieldMsg('comments','Comments are mandatory when cancelling a Request.','error');
            return false; //Abort submission

    g_form.showFieldMsg() are not behaving as expected.  No message is displayed.

    Mandatory is set and the action is aborted (incident is not cancelled), but user does not receive the message. Additionally, there seems to be no way to focus on the form field either using g_form.getControl or g_form.getElement (getControl is not supported as it uses DOM).

    No errors are captured in the System Logs. No script errors are thrown in JavaScript Console.


If you are not able to upgrade to the versions listed in the Fixed In field below, you can apply one of the following workarounds:

  • Switch to UI15
  • Remove the activity formatter from the form
  • Set the showFieldMsg function on a non-journal field in the Notes section, such as Description, even with the formatter still on the form

Related Problem: PRB657182

Seen In

Geneva Patch 1
Geneva Patch 3 Hot Fix 5
Geneva Patch 4
Geneva Patch 5

Fixed In

Geneva Patch 7

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-10-26 23:31:39